diff options
Diffstat (limited to 'sublab_project')
-rw-r--r-- | sublab_project/settings.py | 2 | ||||
-rw-r--r-- | sublab_project/supervisord.conf | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/sublab_project/settings.py b/sublab_project/settings.py index b28a007..a1849c6 100644 --- a/sublab_project/settings.py +++ b/sublab_project/settings.py @@ -236,6 +236,8 @@ REDIS_SESSION_CONFIG = { 'COMPRESS_LIB': '', } +GUNICORN_PORT = '8000' + try: from local_settings import * except ImportError: diff --git a/sublab_project/supervisord.conf b/sublab_project/supervisord.conf index c940dfd..f212d36 100644 --- a/sublab_project/supervisord.conf +++ b/sublab_project/supervisord.conf @@ -1,5 +1,5 @@ [program:gunicorn] -command={{ PYTHON }} {{ PROJECT_DIR }}/manage.py run_gunicorn +command={{ PYTHON }} {{ PROJECT_DIR }}/manage.py run_gunicorn --workers=2 --max-requests=1000 --bind=127.0.0.1:{{ settings.GUNICORN_PORT }} {% if settings.DEBUG %} exclude=true {% endif %} @@ -25,9 +25,7 @@ stopwaitsecs = 600 [program:celerycam] command={{ PYTHON }} {{ PROJECT_DIR }}/manage.py celerycam -[program:redis] {% if settings.DEBUG %} -command=redis-server -{% else %} +[program:redis] command=redis-server {% endif %} |