File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44DEPLOY_PATH=" /home/ny/projects/final"
55VENV_PATH=" /home/ny/projects/venv"
66
7- echo " === Deploying frontend ==="
8- cd $DEPLOY_PATH /frontend
9- npm install
10- npm run build
7+ # echo "=== Deploying frontend ==="
8+ # cd $DEPLOY_PATH/frontend
9+ # npm install
10+ # npm run build
1111
1212
13- # echo "=== Deploying backend ==="
14- # cd $DEPLOY_PATH/backend
15- # source $VENV_PATH/bin/activate
16- # # Restart backend using PM2 and uvicorn
17- # pm2 start uvicorn --name backend -- \
18- # app.main:app --host 0.0.0.0 --port 8000 || pm2 restart backend
13+ echo " === Deploying backend ==="
14+ cd $DEPLOY_PATH /backend
15+ source $VENV_PATH /bin/activate
16+ # Restart backend using PM2 and uvicorn
17+ pm2 start uvicorn --name backend -- \
18+ app.main:app --host 0.0.0.0 --port 8000 || pm2 restart backend
1919
20- # echo "Deployment complete 🚀"
20+ echo " Deployment complete 🚀"
You can’t perform that action at this time.
0 commit comments