supervisord

This commit is contained in:
Mateusz Gruszczyński
2025-11-01 19:22:48 +01:00
parent ab1f61fdd5
commit 183751f6d7
2 changed files with 5 additions and 4 deletions

2
.gitignore vendored Normal file
View File

@@ -0,0 +1,2 @@
venv
logs/*

View File

@@ -23,7 +23,9 @@ autorestart=true
stderr_logfile=/var/log/supervisor/flask_app.err.log
stdout_logfile=/var/log/supervisor/flask_app.out.log
priority=999
environment=FLASK_APP=/app/app.py,FLASK_ENV=production,PYTHONUNBUFFERED=1
environment=FLASK_APP=/app/app.py,FLASK_ENV=production,PYTHONUNBUFFERED=1,PATH=/usr/local/bin:/usr/bin:/bin
startsecs=10
stopasgroup=true
[unix_http_server]
file=/var/run/supervisor.sock
@@ -31,6 +33,3 @@ chmod=0700
[supervisorctl]
serverurl=unix:///var/run/supervisor.sock
[rpcinterface:supervisor]
supervisor.rpc_interface_factory=supervisor.rpcinterface:make_main_rpcinterface