-
Notifications
You must be signed in to change notification settings - Fork 57
/
Copy pathsupervisord.conf
41 lines (36 loc) · 1 KB
/
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
30
31
32
33
34
35
36
37
38
39
40
41
[supervisord]
logfile = /tmp/supervisord.log
logfile_maxbytes = 50MB
logfile_backups=10
loglevel = info
pidfile = /tmp/supervisord.pid
nodaemon = false
minfds = 1024
minprocs = 200
umask = 022
user = root
identifier = supervisor
directory = /tmp
nocleanup = true
childlogdir = /tmp
strip_ansi = false
# [program:app-migration]
# command = /usr/bin/python2.7 /usr/src/app/manage.py makemigrations
# autostart=true
# autorestart=false
# [program:app-migrate]
# command = /usr/bin/python2.7 /usr/src/app/manage.py migrate
# autostart=true
# autorestart=false
[program:app-uwsgi]
command = /usr/local/bin/uwsgi --ini /usr/src/app/mayblog_uwsgi.ini
autostart=true
autorestart=true
stdout_logfile=/var/log/supervisor/%(program_name)s.log
stderr_logfile=/var/log/supervisor/%(program_name)s.log
[program:nginx-app]
command = service nginx start
autostart=true
autorestart=true
stdout_logfile=/var/log/supervisor/%(program_name)s.log
stderr_logfile=/var/log/supervisor/%(program_name)s.log