Advertisement
Guest User

Untitled

a guest
Aug 12th, 2017
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.95 KB | None | 0 0
  1. #chances are you use the same port and adapter everywhere
  2. default: &default
  3. adapter: mysql2
  4. reconnect: true
  5. port: 3306
  6.  
  7. #we use docker compose locally, so these settings stay the same
  8. local: &local
  9. <<: *default
  10. username: root
  11. password:
  12. host: db
  13.  
  14. #we use AWS for hosting, but as long as these env vars are present, you can use any provider
  15. remote: &remote
  16. <<: *default
  17. database: <%= ENV['DATABASE'] %>
  18. username: <%= ENV['DB_USER'] %>
  19. password: <%= ENV['DB_PASSWORD'] %>
  20. host: <%= ENV['DB_HOST'] %>
  21. pool: 25
  22.  
  23. #we use SSL connections to our RDS instance, so we setup a verification key, but if you have everything locked down,
  24. #you probably won't need these next two lines
  25. sslca: '/var/rds-combined-ca-bundle.pem'
  26. sslverify: true
  27.  
  28. #finally, we define environment specific settings below
  29. development:
  30. <<: *local
  31. database: ygrene_development
  32.  
  33. test:
  34. <<: *default
  35. database: ygrene_test
  36.  
  37. staging:
  38. <<: *remote
  39.  
  40. production:
  41. <<: *remote
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement