/silk/site_templates/roles/staging.yaml
https://bitbucket.org/btubbs/silk-deployment/ · YAML · 39 lines · 25 code · 0 blank · 14 comment · 0 complexity · 9e451ff7c60700e2e5fad31427ad3a73 MD5 · raw file
- #on 'silk push -R <rolename>', deploy to these hosts
- push_hosts:
- - staging.mysite.com
- #listen for these host headers in nginx
- listen_hosts:
- - mysite.staging.server.com
- #options to pass to gunicorn on the command line
- gunicorn:
- workers: 1
- log-level: info
- name: mysite
- debug: false
- #you can optionally specify how nginx talks to gunicorn
- #default is a unix socket
- #bind: unix:/tmp/somewhere.sock
- #bind: localhost:8004
- # Environment variables to pass in to the process. You can just leave
- # 'env' blank if you don't need to pass any variables in.
- env:
- DJANGO_DB_HOST: localhost
- DJANGO_DB_NAME: some_db_name
- DJANGO_DB_USER: some_db_user
- DJANGO_DB_PASS: some_db_pwd
- DJANGO_DEBUG: "1"
- # If you don't like environment variables, you can import
- # silk and have it read all these settings from the blame.yaml file
- # instead. See silk/extras/django_local_settings.py for an example.
- # 'app_config' isn't hard-coded anywhere in Silk, but it's a nice
- # convention for passing in role-specific config
- app_config:
- DEBUG: false
- DATABASES:
- default:
- ENGINE: django.db.backends.postgresql_psycopg2
- NAME: mydb
- USER: me_duh
- PASSWORD: super_secure_pwd
- HOST: staging_db_host
- PORT: