Fix deploy: kill uvicorn by name, clear __pycache__, ensure variant generation runs

This commit is contained in:
root
2026-07-05 16:35:26 +00:00
parent dc3e2f682e
commit 2570012c59
+1 -1
View File
@@ -12,5 +12,5 @@ rsync -av \
/root/dodep-simulator/ \ /root/dodep-simulator/ \
root@zernmc.ru:/root/dodep/ root@zernmc.ru:/root/dodep/
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 &" ssh root@zernmc.ru "pkill -f 'uvicorn' 2>/dev/null; pkill -f 'python3.*backend' 2>/dev/null; sleep 2; cd /root/dodep && rm -rf __pycache__ && setsid python3 -m uvicorn frontend:app --host 0.0.0.0 --port 13669 > /tmp/frontend.log 2>&1 &"
echo "Deployed and restarted." echo "Deployed and restarted."