-
Notifications
You must be signed in to change notification settings - Fork 4
/
supervisord.conf
29 lines (29 loc) · 1015 Bytes
/
supervisord.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
[supervisord]
[inet_http_server]
port=127.0.0.1:9001
[supervisorctl]
[program:flask]
command=/usr/bin/python3 /home/ubuntu/.local/bin/gunicorn -w 3 apis:app --bind localhost:8000 --access-logfile /home/ubuntu/COVID/app.log --capture-output
directory=/home/ubuntu/COVID
stderr_logfile=api_out.log
stdout_logfile=api_error.log
autostart=true
autorestart=true
redirect_stderr=true
[program:whatsapp_webhook]
command=/usr/bin/python3 /home/ubuntu/.local/bin/gunicorn -w 3 whatsapp_fn:app --bind localhost:4000 --access-logfile /home/ubuntu/COVID/whatsapp.log --capture-output
directory=/home/ubuntu/COVID
stderr_logfile=whatsapp_out.log
stdout_logfile=whatsapp_error.log
autostart=true
autorestart=true
redirect_stderr=true
[program:consumers]
command=/usr/bin/python3 consumer_factory.py
stderr_logfile=consumers_error.log
stdout_logfile=consumers_out.log
autostart=true
autorestart=true
redirect_stderr=true
[rpcinterface:supervisor]
supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface