Advertisement
casamia

database.yml

Jan 26th, 2016
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. # In database.yml...
  2.  
  3. # First version : Error occurs when "gem 'sqlite3'" is only on the test & development group.
  4. production:
  5. <<: *default
  6. database: db/production.sqlite3
  7.  
  8. # Second version : works well
  9. production:
  10. <<: *default
  11. adapter: postgresql
  12. encoding: unicode
  13. database: <%= ENV['RDS_DB_NAME'] %>
  14. username: <%= ENV['RDS_USERNAME'] %>
  15. password: <%= ENV['RDS_PASSWORD'] %>
  16. host: <%= ENV['RDS_HOSTNAME'] %>
  17. port: <%= ENV['RDS_PORT'] %>
  18.  
  19.  
  20. # Third version : works well
  21. production:
  22. adapter: postgresql
  23. encoding: unicode
  24. database: <%= ENV['RDS_DB_NAME'] %>
  25. username: <%= ENV['RDS_USERNAME'] %>
  26. password: <%= ENV['RDS_PASSWORD'] %>
  27. host: <%= ENV['RDS_HOSTNAME'] %>
  28. port: <%= ENV['RDS_PORT'] %>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement