1
0
Fork 0
This repository has been archived on 2023-03-28. You can view files and clone it, but cannot push or open issues or pull requests.
lpr-partynest/config/database.yml

39 lines
1.1 KiB
YAML

default: &default
adapter: postgresql
encoding: unicode
pool: <%= ENV.fetch('POSTGRES_POOL') { 5 } %>
unsafe: &unsafe
<<: *default
host: <%= ENV.fetch('POSTGRES_HOST') { 'localhost' } %>
port: <%= ENV.fetch('POSTGRES_PORT') { 5432 } %>
username: <%= ENV.fetch('POSTGRES_USER') { 'partynest' } %>
password: <%= ENV.fetch('POSTGRES_PASSWORD') { 'password' } %>
development:
<<: *unsafe
database: <%= ENV.fetch('POSTGRES_DB') { 'partynest_development' } %>
test: &test
<<: *unsafe
database: <%= ENV.fetch('POSTGRES_DB') { 'partynest_test' } %>
cucumber:
<<: *test
staging:
<<: *default
host: 'private-db-postgresql-ams3-63609-do-user-4455684-0.db.ondigitalocean.com'
port: 25060
database: 'partynest_staging'
username: 'doadmin'
password: <%= Rails.application.credentials.postgres_password %>
production:
<<: *default
host: 'private-db-postgresql-ams3-63609-do-user-4455684-0.db.ondigitalocean.com'
port: 25060
database: 'partynest_production'
username: 'doadmin'
password: <%= Rails.application.credentials.postgres_password %>