Created
April 13, 2014 18:31
-
-
Save hoffmannkrzysztof/10596151 to your computer and use it in GitHub Desktop.
Starting config for django and fastcgi with celery
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
cd [site] | |
git pull | |
killall -s KILL python | |
python manage.py migrate --settings=settings_prod | |
python manage.py runfcgi --settings=settings_prod method=prefork host=127.0.0.1 port=8902 maxspare=20 minspare=1 maxchildren=50 | |
python manage.py celeryd -f celery.log -l error -v 2 -B -s celery -E -c 3 --autoreload --settings=settings_prod & | |
python manage.py celerycam -F 1 --settings=settings_prod & |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment