Skip to content

Instantly share code, notes, and snippets.

@amitk
Created May 10, 2020 04:21
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 amitk/be49f317eac6f3b0e02d7d6f979ae331 to your computer and use it in GitHub Desktop.
Save amitk/be49f317eac6f3b0e02d7d6f979ae331 to your computer and use it in GitHub Desktop.
connect to aws database from local environment in rails using database.yml
default: &default
adapter: postgresql
database: bs_development
host: localhost
encoding: unicode
pool: 5
stage: &stage-reactui
adapter: postgresql
database: bs_react_demo_apis_staging
user: username
password: password
host: host_name
pool: 50
timeout: 5000
port: 5432
development:
<<: *stage-reactui
# database: brandscope_development
# database: brandscope_development
# 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:
<<: *default
database: bs_test
production:
database: bs_production
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment