Created
July 22, 2011 16:19
-
-
Save stefanfoulis/1099770 to your computer and use it in GitHub Desktop.
example supervisord script for starting django and gunicorn
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
; only run one of this process per deployment! | |
[program:projectname_celeryd_live] | |
command=/home/myusername/projectname-live/bin/django celerybeat | |
directory=/home/myusername/projectname-live/ | |
user=myusername | |
autostart=True | |
autorestart=True | |
redirect_stderr=True |
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
; only run one of this process per deployment! | |
[program:projectname_celeryd_live] | |
command=/home/myusername/projectname-live/bin/django camqadm | |
directory=/home/myusername/projectname-live/ | |
user=myusername | |
autostart=True | |
autorestart=True | |
redirect_stderr=True |
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
; only run one of this process per deployment! | |
[program:projectname_celeryd_live] | |
command=/home/myusername/projectname-live/bin/django celeryev | |
directory=/home/myusername/projectname-live/ | |
user=myusername | |
autostart=True | |
autorestart=True | |
redirect_stderr=True |
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
; run as many as you like of this process! | |
[program:projectname_celeryd_live] | |
command=/home/myusername/projectname-live/bin/django celeryd | |
directory=/home/myusername/projectname-live/ | |
user=myusername | |
autostart=True | |
autorestart=True | |
redirect_stderr=True |
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
; run as many as you like of this process! But remember to change the ports | |
[program:projectname_gunicorn_live] | |
command=/home/myusername/projectname-live/bin/django run_gunicorn -b 127.0.0.1:1559 | |
directory=/home/myusername/projectname-live/ | |
user=myusername | |
autostart=True | |
autorestart=True | |
redirect_stderr=True |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment