We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b26a170 commit d1ea802Copy full SHA for d1ea802
deploy_prod.sh
@@ -32,6 +32,11 @@ export DJANGO_SETTINGS_MODULE="pythonkr_backend.settings.prod"
32
./manage.py loaddata fixtures.json
33
./manage.py collectstatic --clear --noinput
34
35
+# stop celery worker
36
+celery -A pythonkr_backend multi stop worker1 -c2 \
37
+ --pidfile=/home/pk/celery-%n.pid \
38
+ --logfile=/home/pk/logs/celery-%n%I.log
39
+
40
# shutdown exist gunicorn
41
if [ -f ${PID_FILE} ]; then
42
PID=$(cat $PID_FILE)
@@ -54,3 +59,8 @@ gunicorn --workers=2 \
54
59
--daemon \
55
60
--pid ${PID_FILE} \
56
61
pythonkr_backend.wsgi
62
63
+# start celery worker
64
+celery -A pythonkr_backend multi start worker1 -c2 \
65
66
0 commit comments