Skip to content

Instantly share code, notes, and snippets.

@ryane
Created March 14, 2015 15:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ryane/75ffbe2dcc0997399d85 to your computer and use it in GitHub Desktop.
Save ryane/75ffbe2dcc0997399d85 to your computer and use it in GitHub Desktop.
development:
adapter: postgresql
encoding: unicode
pool: 5
database: sample_app_rails_4_development
host: <%= ENV['SAMPLE_APP_RAILS_4_DB_HOST'] %>
port: <%= ENV['SAMPLE_APP_RAILS_4_DB_PORT'] %>
username: <%= ENV['SAMPLE_APP_RAILS_4_DB_USER'] %>
password: <%= ENV['SAMPLE_APP_RAILS_4_DB_PASSWORD'] %>
# Warning: The database defined as "test" will be erased and
# re-generated from your development database when you run "rake".
# Do not set this db to the same as development or production.
test: &test
adapter: postgresql
encoding: unicode
database: sample_app_rails_4_test
pool: 5
host: <%= ENV['SAMPLE_APP_RAILS_4_DB_HOST'] %>
port: <%= ENV['SAMPLE_APP_RAILS_4_DB_PORT'] %>
username: <%= ENV['SAMPLE_APP_RAILS_4_DB_USER'] %>
password: <%= ENV['SAMPLE_APP_RAILS_4_DB_PASSWORD'] %>
production:
adapter: postgresql
encoding: unicode
database: <%= ENV['RDS_DB_NAME'] %>
username: <%= ENV['RDS_USERNAME'] %>
password: <%= ENV['RDS_PASSWORD'] %>
host: <%= ENV['RDS_HOSTNAME'] %>
port: <%= ENV['RDS_PORT'] %>
cucumber:
<<: *test
@ryane
Copy link
Author

ryane commented Mar 14, 2015

use dotenv to manage environment variables for development and test

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment