This commit is contained in:
@@ -30,3 +30,20 @@ jobs:
|
|||||||
python3 -m venv /opt/rezept_finder/venv || true
|
python3 -m venv /opt/rezept_finder/venv || true
|
||||||
/opt/rezept_finder/venv/bin/pip install --upgrade pip
|
/opt/rezept_finder/venv/bin/pip install --upgrade pip
|
||||||
/opt/rezept_finder/venv/bin/pip install -r /opt/rezept_finder/backend/requirements.txt
|
/opt/rezept_finder/venv/bin/pip install -r /opt/rezept_finder/backend/requirements.txt
|
||||||
|
|
||||||
|
- name: Build frontend
|
||||||
|
working-directory: /opt/rezept_finder/frontend
|
||||||
|
run: |
|
||||||
|
npm install
|
||||||
|
npm run build
|
||||||
|
|
||||||
|
- name: Sync frontend
|
||||||
|
working-directory: /opt/rezept_finder/frontend
|
||||||
|
run: rsync -a --delete dist/ /var/www/frontend/
|
||||||
|
|
||||||
|
- name: Restart API
|
||||||
|
run: |
|
||||||
|
sudo systemctl restart flask-api
|
||||||
|
sudo systemctl reload nginx
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ const apiTarget = process.env.VITE_DEV_API_TARGET || 'http://backend:5000';
|
|||||||
|
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
plugins: [react()],
|
plugins: [react()],
|
||||||
|
envDir: '/opt/sheared/sheared_env/env',
|
||||||
server: {
|
server: {
|
||||||
host: '0.0.0.0',
|
host: '0.0.0.0',
|
||||||
proxy: {
|
proxy: {
|
||||||
|
|||||||
Reference in New Issue
Block a user