Skip to content

Commit 90d3035

Browse files
committed
test script
1 parent f1915e4 commit 90d3035

3 files changed

Lines changed: 12 additions & 10 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ jobs:
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

backend/app.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
import time
1212
import base64
1313
import json
14+
import warnings
15+
warnings.filterwarnings("ignore", category=UserWarning, module="torch")
1416

1517
app = FastAPI(title="Khmer Letter Detection API", version="1.0")
1618

script/start.sh

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
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

1313
echo "=== Deploying backend ==="
1414
cd $DEPLOY_PATH/backend
1515
source $VENV_PATH/bin/activate
1616
# Restart backend using PM2 and uvicorn
1717
pm2 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

2020
echo "Deployment complete 🚀"

0 commit comments

Comments
 (0)