supervisord.conf 526 Bytes
Newer Older
1
2
3
4
5
6
7
[supervisord]
nodaemon=true

[program:apache2]
command=/usr/sbin/apache2ctl -D FOREGROUND
autostart=true
autorestart=true
8
9
stdout_logfile=/var/log/supervisor/flask.log
stderr_logfile=/var/log/supervisor/flask_err.log
10
11

[program:flask]
12
command=/bin/bash -c 'source /opt/myenv/bin/activate && FLASK_APP=/var/www/html/moodle/api.py /opt/myenv/bin/flask run --host=0.0.0.0'
13
14
directory=/var/www/html/moodle
autostart=true
15
16
17
autorestart=true
stdout_logfile=/var/log/supervisor/moodle.log
stderr_logfile=/var/log/supervisor/moodle_err.log