This commit is contained in:
2026-04-26 12:43:15 +02:00
parent 4941905e10
commit 9d200b92f7
2 changed files with 25 additions and 12 deletions
+4 -2
View File
@@ -5,8 +5,10 @@ After=network.target
[Service]
Type=simple
User=root
WorkingDirectory=/opt/web-control
ExecStart=/usr/local/bin/gunicorn -k "geventwebsocket.gunicorn.workers.GeventWebSocketWorker" -w 1 --graceful-timeout 2 --bind 0.0.0.0:9000 app:app
# Assicurati che questo sia il percorso esatto della cartella del tuo progetto
WorkingDirectory=/opt/web-control-server
# PUNTA AL GUNICORN DENTRO IL VENV!
ExecStart=/opt/web-control-server/venv/bin/gunicorn -k "geventwebsocket.gunicorn.workers.GeventWebSocketWorker" -w 1 --graceful-timeout 2 --bind 0.0.0.0:9000 app:app
TimeoutStopSec=3
Restart=always
RestartSec=5