Skip to content

Commit 157d5e3

Browse files
committed
change redis port to 7777
1 parent 79affc9 commit 157d5e3

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

deploy/supervisord.conf

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ file=/tmp/supervisor.sock ; unix socket file
2222
serverurl=unix:///tmp/supervisor.sock ; connect to supervisord through unix socket
2323

2424
[program:redis]
25-
command=redis-server --port 6380
25+
command=redis-server --port 7777
2626
directory=%(ENV_WORKDIR)s
2727
stdout_logfile=%(ENV_WORKDIR)s/data/log/redis.log
2828
stderr_logfile=%(ENV_WORKDIR)s/data/log/redis.log
@@ -31,7 +31,7 @@ autostart=true
3131
autorestart=true
3232

3333
[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 -
3535
directory=%(ENV_WORKDIR)s
3636
stdout_logfile=%(ENV_WORKDIR)s/data/log/onl_backend.log
3737
stderr_logfile=%(ENV_WORKDIR)s/data/log/onl_backend.log

manage

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ case $cmd in
7474
;;
7575
"rebuild" )
7676
clean
77-
rebuild
77+
migrate
7878
;;
7979
"run" )
8080
run_onl

onl/settings.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
# }
3838
REDIS_CONF = {
3939
"host": get_env("REDIS_HOST", "oj-redis"),
40-
"port": get_env("REDIS_PORT", "6380")
40+
"port": get_env("REDIS_PORT", "7777")
4141
}
4242
DEBUG = False
4343
ALLOWED_HOSTS = ['*']
@@ -63,7 +63,7 @@
6363
# }
6464
REDIS_CONF = {
6565
"host": '127.0.0.1',
66-
"port": 6380
66+
"port": 7777
6767
}
6868
DEBUG = True
6969
ALLOWED_HOSTS = ["*"]

0 commit comments

Comments
 (0)