We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 61f5471 commit 51fd634Copy full SHA for 51fd634
1 file changed
scripts/deploy.sh
@@ -6,14 +6,12 @@ VENV_PATH="/home/ny/projects/venv"
6
7
echo "=== Deploying frontend ==="
8
cd $DEPLOY_PATH/frontend
9
-npm install
10
-pm2 start npm --name frontend -- run start || pm2 restart frontend
+npm install --legacy-peer-deps
+# Restart frontend service
11
+sudo systemctl restart frontend.service
12
13
echo "=== Deploying backend ==="
-cd $DEPLOY_PATH/backend
14
-source $VENV_PATH/bin/activate
15
-# Restart backend using PM2 and uvicorn
16
-pm2 start uvicorn --name backend -- \
17
- app.main:app --host 0.0.0.0 --port 8000 || pm2 restart backend
+# Restart backend service
+sudo systemctl restart backend.service
18
19
echo "Deployment complete 🚀"
0 commit comments