diff --git a/.github/actions/build.sh b/.github/actions/build.sh old mode 100644 new mode 100755 diff --git a/.github/workflows/image.yml b/.github/workflows/image.yml index 71a630580..a79bd27d9 100644 --- a/.github/workflows/image.yml +++ b/.github/workflows/image.yml @@ -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 }} \ No newline at end of file diff --git a/docker/docker-compose.dev.yml b/docker/docker-compose.dev.yml new file mode 100644 index 000000000..b60e93e31 --- /dev/null +++ b/docker/docker-compose.dev.yml @@ -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" \ No newline at end of file diff --git a/frontend/.env b/frontend/.env deleted file mode 100644 index d07f5cccc..000000000 --- a/frontend/.env +++ /dev/null @@ -1 +0,0 @@ -VITE_BACK_PORT="5000" \ No newline at end of file diff --git a/frontend/package.json b/frontend/package.json index 9c53c6f85..fffd98927 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -1,6 +1,6 @@ { "name": "romm", - "version": "0.12", + "version": "0.13", "private": true, "scripts": { "dev": "vite --host", diff --git a/frontend/src/components/PlatformsBar.vue b/frontend/src/components/PlatformsBar.vue index 589a617ac..2ce3a6a81 100644 --- a/frontend/src/components/PlatformsBar.vue +++ b/frontend/src/components/PlatformsBar.vue @@ -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') || "") diff --git a/frontend/src/components/RomsGallery.vue b/frontend/src/components/RomsGallery.vue index 8bc1586f7..2d24cea08 100644 --- a/frontend/src/components/RomsGallery.vue +++ b/frontend/src/components/RomsGallery.vue @@ -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('') diff --git a/frontend/vite.config.js b/frontend/vite.config.js index 08f6ce2d9..eecdd9dba 100644 --- a/frontend/vite.config.js +++ b/frontend/vite.config.js @@ -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, }, })