First deployment frontend

This commit is contained in:
2026-03-27 23:41:18 +01:00
parent c2d69fb289
commit 86c2d4d8c8
3 changed files with 20 additions and 0 deletions

18
deploy-frontend.sh Executable file
View File

@@ -0,0 +1,18 @@
#!/bin/bash
set -e
HOST=peakup
REMOTE_DIR=/var/www/peakup
echo "==> Building frontend..."
cd peakup-frontend
npm run build
cd ..
echo "==> Deploying to $HOST..."
rsync -av --delete peakup-frontend/dist/ root@$HOST:$REMOTE_DIR/
echo "==> Reloading nginx..."
ssh root@$HOST "systemctl reload nginx"
echo "==> Done. Frontend available at http://$HOST"

1
peakup-frontend/.env Normal file
View File

@@ -0,0 +1 @@
VITE_API_URL=http://localhost:8111

View File

@@ -0,0 +1 @@
VITE_API_URL=http://peakup-backend:8111