Fix deploy script to kill both frontend and backend processes
This commit is contained in:
+1
-1
@@ -12,5 +12,5 @@ rsync -av \
|
||||
/root/dodep-simulator/ \
|
||||
root@zernmc.ru:/root/dodep/
|
||||
|
||||
ssh root@zernmc.ru "cd /root/dodep && sleep 1 && pkill -f 'frontend:app' 2>/dev/null; setsid python3 -m uvicorn frontend:app --host 0.0.0.0 --port 13669 > /tmp/frontend.log 2>&1 &"
|
||||
ssh root@zernmc.ru "pkill -f 'frontend:app' 2>/dev/null; pkill -f 'python3.*backend' 2>/dev/null; sleep 2; cd /root/dodep && setsid python3 -m uvicorn frontend:app --host 0.0.0.0 --port 13669 > /tmp/frontend.log 2>&1 &"
|
||||
echo "Deployed and restarted."
|
||||
|
||||
Reference in New Issue
Block a user