@@ -8,19 +8,25 @@ nodaemon=true
8
8
childlogdir=%(ENV_WORKDIR)s/data/log
9
9
10
10
[inet_http_server]
11
- port=0.0.0.0:9005
11
+ port=0.0.0.0:9001
12
+ username=onl
13
+ password=onl
12
14
13
15
[rpcinterface:supervisor]
14
16
supervisor.rpcinterface_factory=supervisor.rpcinterface:make_main_rpcinterface
15
17
18
+ [unix_http_server]
19
+ file=/tmp/supervisor.sock ; unix socket file
20
+
16
21
[supervisorctl]
17
- serverurl=http ://0.0.0.0:9005
22
+ serverurl=unix :///tmp/supervisor.sock ; connect to supervisord through unix socket
18
23
19
24
[program:redis]
20
25
command=redis-server --port 6380
21
26
directory=%(ENV_WORKDIR)s
22
27
stdout_logfile=%(ENV_WORKDIR)s/data/log/redis.log
23
28
stderr_logfile=%(ENV_WORKDIR)s/data/log/redis.log
29
+ stdout_logfile_maxbytes = 10MB
24
30
autostart=true
25
31
autorestart=true
26
32
@@ -29,6 +35,7 @@ command=gunicorn onl.wsgi --bind 0.0.0.0:7890 --workers %(ENV_MAX_WORKER_NUM)s -
29
35
directory=%(ENV_WORKDIR)s
30
36
stdout_logfile=%(ENV_WORKDIR)s/data/log/onl_backend.log
31
37
stderr_logfile=%(ENV_WORKDIR)s/data/log/onl_backend.log
38
+ stdout_logfile_maxbytes = 10MB
32
39
autostart=true
33
40
autorestart=true
34
41
killasgroup=true
@@ -38,6 +45,7 @@ command=node build/dev-server.js
38
45
directory=%(ENV_FRONTEND)s
39
46
stdout_logfile=%(ENV_WORKDIR)s/data/log/onl_fe.log
40
47
stderr_logfile=%(ENV_WORKDIR)s/data/log/onl_fe.log
48
+ stdout_logfile_maxbytes = 10MB
41
49
autostart=true
42
50
autorestart=true
43
51
startsecs=5
@@ -48,6 +56,7 @@ command=python3 manage.py rundramatiq --processes %(ENV_MAX_WORKER_NUM)s --threa
48
56
directory=%(ENV_WORKDIR)s
49
57
stdout_logfile=%(ENV_WORKDIR)s/data/log/dramatiq.log
50
58
stderr_logfile=%(ENV_WORKDIR)s/data/log/dramatiq.log
59
+ stdout_logfile_maxbytes = 10MB
51
60
autostart=true
52
61
autorestart=true
53
62
killasgroup=true
0 commit comments