summaryrefslogtreecommitdiff
path: root/sublab_project/supervisord.conf
diff options
context:
space:
mode:
Diffstat (limited to 'sublab_project/supervisord.conf')
-rw-r--r--sublab_project/supervisord.conf6
1 files changed, 2 insertions, 4 deletions
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 %}