@@ -8,19 +8,25 @@ nodaemon=true
88childlogdir=%(ENV_WORKDIR)s/data/log
99
1010[inet_http_server]
11- port=0.0.0.0:9005
11+ port=0.0.0.0:9001
12+ username=onl
13+ password=onl
1214
1315[rpcinterface:supervisor]
1416supervisor.rpcinterface_factory=supervisor.rpcinterface:make_main_rpcinterface
1517
18+ [unix_http_server]
19+ file=/tmp/supervisor.sock ; unix socket file
20+
1621[supervisorctl]
17- serverurl=http ://0.0.0.0:9005
22+ serverurl=unix :///tmp/supervisor.sock ; connect to supervisord through unix socket
1823
1924[program:redis]
2025command=redis-server --port 6380
2126directory=%(ENV_WORKDIR)s
2227stdout_logfile=%(ENV_WORKDIR)s/data/log/redis.log
2328stderr_logfile=%(ENV_WORKDIR)s/data/log/redis.log
29+ stdout_logfile_maxbytes = 10MB
2430autostart=true
2531autorestart=true
2632
@@ -29,6 +35,7 @@ command=gunicorn onl.wsgi --bind 0.0.0.0:7890 --workers %(ENV_MAX_WORKER_NUM)s -
2935directory=%(ENV_WORKDIR)s
3036stdout_logfile=%(ENV_WORKDIR)s/data/log/onl_backend.log
3137stderr_logfile=%(ENV_WORKDIR)s/data/log/onl_backend.log
38+ stdout_logfile_maxbytes = 10MB
3239autostart=true
3340autorestart=true
3441killasgroup=true
@@ -38,6 +45,7 @@ command=node build/dev-server.js
3845directory=%(ENV_FRONTEND)s
3946stdout_logfile=%(ENV_WORKDIR)s/data/log/onl_fe.log
4047stderr_logfile=%(ENV_WORKDIR)s/data/log/onl_fe.log
48+ stdout_logfile_maxbytes = 10MB
4149autostart=true
4250autorestart=true
4351startsecs=5
@@ -48,6 +56,7 @@ command=python3 manage.py rundramatiq --processes %(ENV_MAX_WORKER_NUM)s --threa
4856directory=%(ENV_WORKDIR)s
4957stdout_logfile=%(ENV_WORKDIR)s/data/log/dramatiq.log
5058stderr_logfile=%(ENV_WORKDIR)s/data/log/dramatiq.log
59+ stdout_logfile_maxbytes = 10MB
5160autostart=true
5261autorestart=true
5362killasgroup=true
0 commit comments