django_app.json 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. {
  2. "id": "my_app",
  3. "server_roles": [
  4. "application specific role(s), typically the name of the app, e.g., my_app",
  5. "my_app"
  6. ],
  7. "type": {
  8. "my_app": [
  9. "recipes in this application cookbook to run for this role",
  10. "django",
  11. "gunicorn"
  12. ]
  13. },
  14. "database_slave_role": [
  15. "name of the role used by database slaves, typically named after the app, 'my_app_database_slave'",
  16. "my_app_database_slave"
  17. ],
  18. "database_master_role": [
  19. "name of the role used by database master, typically named after the app 'my_app_database_master'",
  20. "my_app_database_master"
  21. ],
  22. "repository": "git@github.com:company/my_app.git",
  23. "revision": {
  24. "production": "commit hash, branch or tag to deploy"
  25. },
  26. "force": {
  27. "production": "true or false w/o quotes to force deployment, see the rails.rb recipe"
  28. },
  29. "migrate": {
  30. "production": "true or false boolean to force migration, see rails.rb recipe"
  31. },
  32. "databases": {
  33. "production": {
  34. "encoding": "utf8",
  35. "username": "db_user",
  36. "adapter": "mysql",
  37. "port": "3306",
  38. "password": "awesome_password",
  39. "database": "db_name_production"
  40. }
  41. },
  42. "mysql_root_password": {
  43. "production": "password for the root user in mysql"
  44. },
  45. "mysql_debian_password": {
  46. "production": "password for the debian-sys-maint user on ubuntu/debian"
  47. },
  48. "mysql_repl_password": {
  49. "production": "password for the 'repl' user for replication."
  50. },
  51. "snapshots_to_keep": {
  52. "production": "if using EBS, integer of the number of snapshots we're going to keep for this environment."
  53. },
  54. "deploy_key": "SSH private key used to deploy from a private git repository",
  55. "deploy_to": "path to deploy, e.g. /srv/my_app",
  56. "owner": "owner for the application files when deployed",
  57. "group": "group for the application files when deployed",
  58. "packages": {
  59. "package_name": "specific packages required for installation at the OS level to run the app like libraries and specific version, e.g.",
  60. "curl": "7.19.5-1ubuntu2"
  61. },
  62. "pips": {
  63. "pip_name": "specific gems required for installation to run the application, and if a specific version is required, e.g.",
  64. "django": "1.2"
  65. },
  66. "local_settings_file_name":"local_settings.py"
  67. }