From 1bb09f23758f6213c200a8e99f12256d38f9abff Mon Sep 17 00:00:00 2001 From: olegpshenichniy Date: Tue, 2 Oct 2018 12:29:30 +0200 Subject: [PATCH] Django 1.11 support. --- prod/web/configs/supervisord.conf | 2 +- prod/web/scripts/celery.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/prod/web/configs/supervisord.conf b/prod/web/configs/supervisord.conf index 88750d3..0af67e9 100644 --- a/prod/web/configs/supervisord.conf +++ b/prod/web/configs/supervisord.conf @@ -9,7 +9,7 @@ user=booktype command=/code/scripts/celery.sh autostart=true autorestart=true -directory=/code +directory=/code/mybook [program:bk-uwsgi] command = /usr/local/bin/uwsgi --ini /code/configs/uwsgi.ini diff --git a/prod/web/scripts/celery.sh b/prod/web/scripts/celery.sh index ae64b86..cd036f3 100644 --- a/prod/web/scripts/celery.sh +++ b/prod/web/scripts/celery.sh @@ -1,3 +1,3 @@ #!/bin/bash -/code/venv/bin/python /code/mybook/manage_prod.py celery worker --concurrency=10 \ No newline at end of file +/code/venv/bin/python -m celery worker --app=mybook_site --concurrency=10 \ No newline at end of file