Skip to content

Instantly share code, notes, and snippets.

@johnhamelink
Created August 19, 2014 15:35
Show Gist options
  • Select an option

  • Save johnhamelink/ed733899f01a930a1295 to your computer and use it in GitHub Desktop.

Select an option

Save johnhamelink/ed733899f01a930a1295 to your computer and use it in GitHub Desktop.
development:
adapter: postgresql
encoding: unicode
schema_search_path: "public,shared_extensions"
host: <%= ENV['DATABASE_HOST'] %>
database: <%= ENV['DATABASE_NAME'] %>
pool: 5
username: <%= ENV['DATABASE_USER'] %>
password: <%= ENV['DATABASE_PASSWORD'] %>
test:
adapter: postgresql
encoding: unicode
schema_search_path: "public,shared_extensions"
host: <%= ENV['DATABASE_TEST_HOST'] %>
database: <%= ENV['DATABASE_TEST_NAME'] %>
pool: 5
username: <%= ENV['DATABASE_TEST_USER'] %>
password: <%= ENV['DATABASE_TEST_PASSWORD'] %>
<% if Rails.env.production? %>
production:
adapter: postgresql
schema_search_path: "public,shared_extensions"
encoding: unicode
host: "postgres.service.consul"
database: <%= Diplomat.get('mapper/app/db/name') %>
pool: 5
username: <%= Diplomat.get('mapper/app/db/username') %>
password: <%= Diplomat.get('mapper/app/db/password') %>
port: <%= Diplomat::Service.get('postgres').ServicePort %>
<% end %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment