Skip to content

Instantly share code, notes, and snippets.

@dillonhafer
Created June 17, 2014 14:14
Show Gist options
  • Save dillonhafer/26259a33b712ed92acfb to your computer and use it in GitHub Desktop.
Save dillonhafer/26259a33b712ed92acfb to your computer and use it in GitHub Desktop.
Database with ENV vars
defaults: &defaults
adapter: postgresql
pool: 5
timeout: 5000
host: localhost
database: <%= ENV['RAILS_DATABASE'] %>
user: <%= ENV['RAILS_DATABASE_USER'] %>
password: <%= ENV['RAILS_DATABASE_PASSWD'] %>
development:
<<: *defaults
test:
<<: *defaults
staging:
<<: *defaults
production:
<<: *defaults
beta:
<<: *defaults
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment