File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 5656 ssh -i ~/.ssh/id_rsa_team -o StrictHostKeyChecking=no -p $SSH_HOST_PORT $SSH_USER@$SSH_HOST "chmod 755 -R $DEPLOYMENT_DIRECTORY"
5757
5858 # Run deployment script on server
59- ssh -i ~/.ssh/id_rsa_team -p $SSH_HOST_PORT -o StrictHostKeyChecking=no $SSH_USER@$SSH_HOST "bash $DEPLOYMENT_DIRECTORY/script/start.sh"
59+ # ssh -i ~/.ssh/id_rsa_team -p $SSH_HOST_PORT -o StrictHostKeyChecking=no $SSH_USER@$SSH_HOST "bash $DEPLOYMENT_DIRECTORY/script/start.sh"
6060
6161
6262
Original file line number Diff line number Diff line change 1111import time
1212import base64
1313import json
14+ import warnings
15+ warnings .filterwarnings ("ignore" , category = UserWarning , module = "torch" )
1416
1517app = FastAPI (title = "Khmer Letter Detection API" , version = "1.0" )
1618
Original file line number Diff line number Diff line change 1- #! /bin/bash
2- set -e
1+ # # !/bin/bash
2+ # set -e
33
4- DEPLOY_PATH=" /home/ny/projects/final"
5- VENV_PATH=" /home/ny/projects/venv"
4+ # DEPLOY_PATH="/home/ny/projects/final"
5+ # VENV_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
1313echo " === Deploying backend ==="
1414cd $DEPLOY_PATH /backend
1515source $VENV_PATH /bin/activate
1616# Restart backend using PM2 and uvicorn
1717pm2 start uvicorn --name backend -- \
18- app.main :app --host 0.0.0.0 --port 8000 || pm2 restart backend
18+ app:app --host 0.0.0.0 --port 8000 || pm2 restart backend
1919
2020echo " Deployment complete 🚀"
You can’t perform that action at this time.
0 commit comments