Skip to content

Instantly share code, notes, and snippets.

@BrianHicks
Created February 27, 2014 13:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BrianHicks/9249964 to your computer and use it in GitHub Desktop.
Save BrianHicks/9249964 to your computer and use it in GitHub Desktop.
# I'd like to be able to define a service something like the following...
name = "Some Python Webapp"
[environment.production]
DJANGO_SETTINGS_MODULE=testapp.settings.production
[environment.staging]
DJANGO_SETTINGS_MODULE=testapp.settings.staging
[[service]]
name=gunicorn
needs_services=["nginx", "redis"]
image=webapp
command=gunicorn project.wsgi:application
instances=3
[[service]]
name=celery-worker
needs_services=["redis"]
image=webapp
command=python manage.py celery worker
instances=3
[[service]]
name=celery-beat
needs_services=["redis"]
image=webapp
command=python manage.py celery beat
instances=1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment