supervisord.conf 591 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/moodle.log
stderr_logfile=/var/log/moodle_err.log
10
11

[program:flask]
12
13
#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'
command=/bin/bash -c 'source /opt/myenv/bin/activate &&/opt/myenv/bin/python3 /var/www/html/moodle/api.py'
14
15
directory=/var/www/html/moodle
autostart=true
16
autorestart=true
17
18
stdout_logfile=/var/log/flask.log
stderr_logfile=/var/log/flask_err.log