forked from djangocon/2015.djangocon.us-archived
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathgondor.yml
49 lines (40 loc) · 1.55 KB
/
gondor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# The key associated to your site.
key: G1B3ETJ97MS
# Version control system used locally for your project.
vcs: git
# Python version to run on Gondor.
runtime: python-2.7.3
# This path is relative to your project root (the directory gondor.yml lives in.)
requirements_file: requirements/deploy.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
- manage.py collectstatic --noinput
# URLs which should be served by Gondor mapping to a filesystem location
# relative to your writable storage area.
static_urls:
- /site_media/media:
root: site_media/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: djangocon.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: gevent
worker_connections: 100
# Determines whether to use virtual environment caching to speed up
# deployments (will only install new dependencies; use gondor deploy
# --fresh to deploy to rebuild the virtual environment)
use_environment_cache: true
env:
DJANGO_SETTINGS_MODULE: djangocon.settings.gondor