diff --git a/.containerignore b/.containerignore index 3d20e8d..cb19d53 100644 --- a/.containerignore +++ b/.containerignore @@ -26,6 +26,7 @@ dist-ssr .venv *.db +uploads/ .env __pycache__ \ No newline at end of file diff --git a/.gitignore b/.gitignore index 3d20e8d..cb19d53 100644 --- a/.gitignore +++ b/.gitignore @@ -26,6 +26,7 @@ dist-ssr .venv *.db +uploads/ .env __pycache__ \ No newline at end of file diff --git a/README.md b/README.md index 174d80c..1004720 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,12 @@ # Porridger -Food and other stuff sharing platform +Food and other stuff sharing platform. The service was developed during Digital Students hackathon by "Полка Billy" team. + +Members: + +* Dmitry Gantimurov - Backend +* Dmitriy Shishkov - Frontend +* Vladimir Yakovlev - Backend & Design ## Dev build instructions @@ -31,5 +37,5 @@ Only docker/podman are required ```sh docker build . -t porridger:build -docker run --name porridger -p 8080:80 -v ./sql_app.db:/app/sql_app.db porridger:build +docker run --name porridger -p 8080:80 -v ./sql_app.db:/srv/sql_app.db -v uploads:/srv/uploads porridger:build ``` diff --git a/front/vite.config.js b/front/vite.config.js index fb0003d..bf855e6 100644 --- a/front/vite.config.js +++ b/front/vite.config.js @@ -2,7 +2,9 @@ import { defineConfig } from 'vite' import react from '@vitejs/plugin-react' // https://vitejs.dev/config/ -export default defineConfig({ - base: "/static", - plugins: [react()], -}) +export default defineConfig( + ({ command }) => ({ + base: (command === 'serve') ? "/" : "/static", + plugins: [react()], + }) +)