/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

  1. #on 'silk push -R <rolename>', deploy to these hosts
  2. push_hosts:
  3. - staging.mysite.com
  4. #listen for these host headers in nginx
  5. listen_hosts:
  6. - mysite.staging.server.com
  7. #options to pass to gunicorn on the command line
  8. gunicorn:
  9. workers: 1
  10. log-level: info
  11. name: mysite
  12. debug: false
  13. #you can optionally specify how nginx talks to gunicorn
  14. #default is a unix socket
  15. #bind: unix:/tmp/somewhere.sock
  16. #bind: localhost:8004
  17. # Environment variables to pass in to the process. You can just leave
  18. # 'env' blank if you don't need to pass any variables in.
  19. env:
  20. DJANGO_DB_HOST: localhost
  21. DJANGO_DB_NAME: some_db_name
  22. DJANGO_DB_USER: some_db_user
  23. DJANGO_DB_PASS: some_db_pwd
  24. DJANGO_DEBUG: "1"
  25. # If you don't like environment variables, you can import
  26. # silk and have it read all these settings from the blame.yaml file
  27. # instead. See silk/extras/django_local_settings.py for an example.
  28. # 'app_config' isn't hard-coded anywhere in Silk, but it's a nice
  29. # convention for passing in role-specific config
  30. app_config:
  31. DEBUG: false
  32. DATABASES:
  33. default:
  34. ENGINE: django.db.backends.postgresql_psycopg2
  35. NAME: mydb
  36. USER: me_duh
  37. PASSWORD: super_secure_pwd
  38. HOST: staging_db_host
  39. PORT: