Supervisor configs: fixed different logfile paths and added gunicorn

pull/78/head
Konstantin Gründger 2019-09-11 08:25:08 +02:00
rodzic eeda6c3a01
commit f8774a784e
5 zmienionych plików z 31 dodań i 18 usunięć

Wyświetl plik

@ -1,12 +1,12 @@
[program:celerybeat]
environment=OGN_CONFIG_MODULE='config/default.py'
command=/var/www/html/ogn-python/venv/bin/celery -A ogn_python.collect beat -l info
directory=/var/www/html/ogn-python
command=/home/pi/venv/bin/celery -A app.collect beat -l info
directory=/home/pi/ogn-python
user=www-data
user=pi
numprocs=1
stdout_logfile=/var/log/celery/beat.log
stderr_logfile=/var/log/celery/beat.log
stdout_logfile=/var/log/supervisor/celery_beat.log
stderr_logfile=/var/log/supervisor/celery_beat.log
autostart=true
autorestart=true
startsecs=10

Wyświetl plik

@ -1,12 +1,12 @@
[program:celery]
environment=OGN_CONFIG_MODULE='config/default.py'
command=/var/www/html/ogn-python/venv/bin/celery -A ogn_python.collect worker -l info
directory=/var/www/html/ogn-python
command=/home/pi/ogn-python/venv/bin/celery -A app.collect worker -l info
directory=/home/pi/ogn-python
user=www-data
user=pi
numprocs=1
stdout_logfile=/var/log/celery/worker.log
stderr_logfile=/var/log/celery/worker.log
stdout_logfile=/var/log/supervisor/celery_worker.log
stderr_logfile=/var/log/supervisor/celery_worker.log
autostart=true
autorestart=true
startsecs=10

Wyświetl plik

@ -1,11 +1,11 @@
[program:flower]
environment=OGN_CONFIG_MODULE='config/default.py'
command=/var/www/html/ogn-python/venv/bin/celery flower -A ogn_python.celery --port=1234 --url_prefix=flower --loglevel=debug
directory=/var/www/html/ogn-python
command=/home/pi/ogn-python/venv/bin/celery flower -A app.celery --port=5555 -l info
directory=/home/pi/ogn-python
user=www-data
stderr_logfile=/var/log/celery/flower_err.log
stdout_logfile=/var/log/celery/flower_out.log
user=pi
stderr_logfile=/var/log/supervisor/celery_flower.log
stdout_logfile=/var/log/supervisor/celery_flower.log
autostart=true
autorestart=true
startsecs=10

Wyświetl plik

@ -0,0 +1,10 @@
[program:gunicorn]
environment=OGN_CONFIG_MODULE='config/default.py'
command=/home/pi/ogn-python/venv/bin/gunicorn --bind :5000 ogn_python:app
directory=/home/pi/ogn-python
user=pi
stderr_logfile=/var/log/supervisor/gunicorn.log
stdout_logfile=/var/log/supervisor/gunicorn.log
autostart=true
autorestart=true

Wyświetl plik

@ -1,7 +1,10 @@
[program:ogn-feeder]
environment=OGN_CONFIG_MODULE='config/default.py'
command=/var/www/html/ogn-python/venv/bin/python -m flask gateway run
user=www-data
directory=/var/www/html/ogn-python/ogn_python
command=/home/pi/ogn-python/venv/bin/python -m flask gateway run
directory=/home/pi/ogn_python
user=pi
stderr_logfile=/var/log/supervisor/ogn-feeder.log
stdout_logfile=/var/log/supervisor/ogn-feeder.log
autostart=true
autorestart=true