Created
June 26, 2012 14:03
-
-
Save tijs/2995956 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
# The key associated to your site. | |
key: <edited out> | |
# Version control system used locally for your project. | |
vcs: git | |
# Framework to use on Gondor. | |
framework: django | |
# This path is relative to your project root (the directory gondor.yml lives in.) | |
requirements_file: requirements.txt | |
# Commands to be executed during deployment. These can handle migrations or | |
# moving static files into place. Accepts same parameters as gondor run. | |
on_deploy: | |
- manage.py syncdb --noinput | |
- manage.py migrate --noinput | |
- manage.py collectstatic --noinput | |
- manage.py epio_flush_cache | |
# URLs which should be served by Gondor mapping to a filesystem location | |
# relative to your writable storage area. | |
static_urls: | |
- /site_media: | |
root: site_media/ | |
wsgi: | |
# The WSGI entry point of your application in two parts separated by a | |
# colon. Example: | |
# | |
# wsgi:application | |
# | |
# wsgi = the Python module which should be importable | |
# application = the callable in the Python module | |
entry_point: chummee.wsgi:application | |
# Options for gunicorn which runs your WSGI project. | |
gunicorn: | |
# The worker class used to run gunicorn (possible values include: | |
# sync, eventlet and gevent) | |
worker_class: eventlet | |
django: | |
# The location of your manage.py. Gondor uses this as an entry point for | |
# management commands. This path is relative to your project root (the | |
# directory gondor.yml lives in.) | |
managepy: manage.py |
This file contains hidden or 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
#!/usr/bin/python | |
import sys, os | |
sys.path.append(os.path.dirname(__file__)) | |
if "DJANGO_SETTINGS_MODULE" not in os.environ: | |
os.environ['DJANGO_SETTINGS_MODULE'] = "chummee.settings" | |
import django.core.handlers.wsgi | |
application = django.core.handlers.wsgi.WSGIHandler() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment