php_app.json 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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. "php",
  11. "mod_php_apache2"
  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. "databases": {
  30. "production": {
  31. "reconnect": "true",
  32. "encoding": "utf8",
  33. "username": "db_user",
  34. "adapter": "mysql",
  35. "password": "awesome_password",
  36. "database": "db_name_production"
  37. }
  38. },
  39. "mysql_root_password": {
  40. "production": "password for the root user in mysql"
  41. },
  42. "mysql_debian_password": {
  43. "production": "password for the debian-sys-maint user on ubuntu/debian"
  44. },
  45. "mysql_repl_password": {
  46. "production": "password for the 'repl' user for replication."
  47. },
  48. "snapshots_to_keep": {
  49. "production": "if using EBS, integer of the number of snapshots we're going to keep for this environment."
  50. },
  51. "deploy_to": "path to deploy, e.g. /srv/my_app",
  52. "owner": "owner for the application files when deployed",
  53. "group": "group for the application files when deployed",
  54. "packages": {
  55. "package_name": "specific packages required for installation at the OS level to run the app like libraries and specific version, e.g.",
  56. "curl": "7.19.5-1ubuntu2"
  57. },
  58. "pears": {
  59. "pear_name": "specific gems required for installation to run the application, and if a specific version is required, e.g.",
  60. "mongo": "1.1.4"
  61. },
  62. "local_settings_file": "some/realative/path/LocalSettings.php"
  63. }