Merge pull request #2 from zurdi15/develop

Develop
This commit is contained in:
Zurdi
2023-03-17 13:38:16 +01:00
committed by GitHub
8 changed files with 26 additions and 5 deletions

0
.github/actions/build.sh vendored Normal file → Executable file
View File

View File

@@ -25,6 +25,6 @@ jobs:
run: echo "${{ secrets.DOCKER_PASSWORD }}" | docker login -u "${{ secrets.DOCKER_USERNAME }}" --password-stdin
- name: build the image
shell: bash
run: ./.github/scripts/build.sh
run: ./.github/actions/build.sh
env:
VERSION: ${{ inputs.version }}

View File

@@ -0,0 +1,15 @@
version: '3'
services:
romm_db:
image: lscr.io/linuxserver/mariadb:latest
container_name: romm_db
environment:
- MYSQL_ROOT_PASSWORD=${DB_ROOT_PASSWD}
- MYSQL_DATABASE=romm
- MYSQL_USER=${DB_USER}
- MYSQL_PASSWORD=${DB_PASSWD}
volumes:
- ${DB_CONFIG_PATH}:/config
ports:
- ${DB_PORT}:3306
restart: "no"

View File

@@ -1 +0,0 @@
VITE_BACK_PORT="5000"

View File

@@ -1,6 +1,6 @@
{
"name": "romm",
"version": "0.12",
"version": "0.13",
"private": true,
"scripts": {
"dev": "vite --host",

View File

@@ -5,7 +5,6 @@ import { useRouter } from 'vue-router'
import { useTheme } from "vuetify";
// Props
const backPort = import.meta.env.VITE_BACK_PORT
const platforms = ref([])
const currentPlatformName = ref(localStorage.getItem('currentPlatformName') || "")
const currentPlatformSlug = ref(localStorage.getItem('currentPlatformSlug') || "")

View File

@@ -5,7 +5,6 @@ import { useRouter } from 'vue-router'
import { saveAs } from 'file-saver'
// Props
const backPort = import.meta.env.VITE_BACK_PORT
const roms = ref([])
const romsFiltered = ref([])
const currentFilter = ref('')

View File

@@ -36,6 +36,15 @@ export default defineConfig({
],
},
server: {
proxy: {
'/api': {
target: 'http://localhost:5000',
changeOrigin: false,
secure: false,
ws: true,
rewrite: (path) => path.replace(/^\/api/, ''),
}
},
port: 3000,
},
})