Skip to content

Instantly share code, notes, and snippets.

@hoffmannkrzysztof
Created April 13, 2014 18:31
Show Gist options
  • Save hoffmannkrzysztof/10596151 to your computer and use it in GitHub Desktop.
Save hoffmannkrzysztof/10596151 to your computer and use it in GitHub Desktop.
Starting config for django and fastcgi with celery
#!/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