Guest User

Untitled

a guest
Sep 16th, 2018
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.88 KB | None | 0 0
  1. platform: &platform
  2. adapter: postgis
  3. schema_search_path: public, postgis
  4. postgis_extension: postgis
  5.  
  6. default: &default
  7. <<: *platform
  8. username: <%= ENV['DB_USER'] || 'default_username' %>
  9. password: <%= ENV['DB_PASS'] || 'default_password' %>
  10. host: <%= ENV['DB_HOST'] || 'localhost' %>
  11. port: <%= ENV['DB_PORT'] || 5432 %>
  12. database: <%= ENV['DB_NAME'] || 'default_dbname' %>
  13. pool: <%= ENV['DB_POOL'] || 5 %>
  14. encoding: unicode
  15.  
  16. development:
  17. <<: *default
  18. database: dbname_development<%= ENV['DB_SUFFIX'] %>
  19. min_messages: warning
  20.  
  21. test:
  22. <<: *default
  23. database: dbname_test<%= ENV['DB_SUFFIX'] %>
  24. min_messages: error
  25.  
  26. <% if %w[acceptance staging performance production].include?(ENV['RAILS_ENV']) %>
  27. <%= ENV['RAILS_ENV'] %>:
  28. <<: *default
  29. <% if ENV['DB_REPLICA_HOST'] %>
  30. slave:
  31. <<: *default
  32. host: <%= ENV['DB_REPLICA_HOST'] %>
  33. <% end %>
  34. <% end %>
Add Comment
Please, Sign In to add comment