File tree 3 files changed +5
-5
lines changed
3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ file=/tmp/supervisor.sock ; unix socket file
22
22
serverurl=unix:///tmp/supervisor.sock ; connect to supervisord through unix socket
23
23
24
24
[program:redis]
25
- command=redis-server --port 6380
25
+ command=redis-server --port 7777
26
26
directory=%(ENV_WORKDIR)s
27
27
stdout_logfile=%(ENV_WORKDIR)s/data/log/redis.log
28
28
stderr_logfile=%(ENV_WORKDIR)s/data/log/redis.log
@@ -31,7 +31,7 @@ autostart=true
31
31
autorestart=true
32
32
33
33
[program:gunicorn]
34
- command=gunicorn onl.wsgi --bind 0.0.0.0:7890 --workers %(ENV_MAX_WORKER_NUM)s --threads 4 --max-requests-jitter 10000 --max-requests 1000000 --keep-alive 32 --access-logfile - --error-logfile -
34
+ command=gunicorn onl.wsgi --bind 0.0.0.0:7890 --workers %(ENV_MAX_WORKER_NUM)s --threads 1 --max-requests-jitter 10000 --max-requests 1000000 --keep-alive 32 --access-logfile - --error-logfile -
35
35
directory=%(ENV_WORKDIR)s
36
36
stdout_logfile=%(ENV_WORKDIR)s/data/log/onl_backend.log
37
37
stderr_logfile=%(ENV_WORKDIR)s/data/log/onl_backend.log
Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ case $cmd in
74
74
;;
75
75
" rebuild" )
76
76
clean
77
- rebuild
77
+ migrate
78
78
;;
79
79
" run" )
80
80
run_onl
Original file line number Diff line number Diff line change 37
37
# }
38
38
REDIS_CONF = {
39
39
"host" : get_env ("REDIS_HOST" , "oj-redis" ),
40
- "port" : get_env ("REDIS_PORT" , "6380 " )
40
+ "port" : get_env ("REDIS_PORT" , "7777 " )
41
41
}
42
42
DEBUG = False
43
43
ALLOWED_HOSTS = ['*' ]
63
63
# }
64
64
REDIS_CONF = {
65
65
"host" : '127.0.0.1' ,
66
- "port" : 6380
66
+ "port" : 7777
67
67
}
68
68
DEBUG = True
69
69
ALLOWED_HOSTS = ["*" ]
You can’t perform that action at this time.
0 commit comments