Guest User

Untitled

a guest
Jan 29th, 2018
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.48 KB | None | 0 0
  1. packages:
  2. yum:
  3. automake: []
  4. libffi-devel: []
  5. ImageMagick: []
  6. git: []
  7. patch: []
  8. bison: []
  9. libtool: []
  10. rubygems:
  11. rake: "10.0.3"
  12. option_settings:
  13. - option_name: BUNDLE_WITHOUT
  14. value: test:development:heroku
  15. - option_name: DB
  16. value: mysql
  17. - option_name: ENVIRONMENT_CERTIFICATE_AUTHORITIES
  18. value: /etc/pki/tls/certs/ca-bundle.crt
  19. files:
  20. "/var/app/support/secret_token.rb":
  21. mode: "000644"
  22. owner: webapp
  23. group: webapp
  24. content: |
  25. Rails.application.config.secret_token = ENV['RAILS_SECRET_TOKEN']
  26. encoding: plain
  27. "/var/app/support/database.yml":
  28. mode: "000644"
  29. owner: webapp
  30. group: webapp
  31. content: |
  32. production:
  33. adapter: mysql2
  34. encoding: utf8
  35. database: <%= ENV['RDS_DB_NAME'] %>
  36. username: <%= ENV['RDS_USERNAME'] %>
  37. password: <%= ENV['RDS_PASSWORD'] %>
  38. host: <%= ENV['RDS_HOSTNAME'] %>
  39. port: <%= ENV['RDS_PORT'] %>
  40. charset: utf8
  41. collation: utf8_bin
  42. encoding: plain
  43. "/opt/elasticbeanstalk/hooks/appdeploy/pre/03_copy_config_files.sh":
  44. mode: "000755"
  45. owner: root
  46. group: root
  47. content: |
  48. #!/usr/bin/env bash
  49.  
  50. . /opt/elasticbeanstalk/support/envvars
  51.  
  52. cd $EB_CONFIG_APP_ONDECK
  53.  
  54. mv $EB_CONFIG_APP_SUPPORT/secret_token.rb config/initializers/secret_token.rb
  55. mv $EB_CONFIG_APP_SUPPORT/database.yml config/database.yml
  56. mv config/diaspora.yml.example config/diaspora.yml
  57.  
  58. true
  59. encoding: plain
Add Comment
Please, Sign In to add comment