|
@ -17,19 +17,19 @@ |
|
|
development: |
|
|
development: |
|
|
adapter: postgresql |
|
|
adapter: postgresql |
|
|
encoding: unicode |
|
|
encoding: unicode |
|
|
database: starterapp_development |
|
|
database: <%= ENV['STARTER_APP_DEV_DB_DATABASE'] || 'starterapp_development' %> |
|
|
pool: 5 |
|
|
pool: 5 |
|
|
username: postgres |
|
|
username: <%= ENV['STARTER_APP_DEV_DB_USER'] || 'postgres' %> |
|
|
password: |
|
|
password: <%= ENV['STARTER_APP_DEV_DB_PASSWORD'] %> |
|
|
|
|
|
|
|
|
# Connect on a TCP socket. Omitted by default since the client uses a |
|
|
# Connect on a TCP socket. Omitted by default since the client uses a |
|
|
# domain socket that doesn't need configuration. Windows does not have |
|
|
# domain socket that doesn't need configuration. Windows does not have |
|
|
# domain sockets, so uncomment these lines. |
|
|
# domain sockets, so uncomment these lines. |
|
|
#host: localhost |
|
|
host: <%= ENV['STARTER_APP_DEV_DB_HOST'] || 'localhost' %> |
|
|
|
|
|
|
|
|
# The TCP port the server listens on. Defaults to 5432. |
|
|
# The TCP port the server listens on. Defaults to 5432. |
|
|
# If your server runs on a different port number, change accordingly. |
|
|
# If your server runs on a different port number, change accordingly. |
|
|
#port: 5432 |
|
|
port: <%= ENV['STARTER_APP_DEV_DB_PORT'] || '5432' %> |
|
|
|
|
|
|
|
|
# Schema search path. The server defaults to $user,public |
|
|
# Schema search path. The server defaults to $user,public |
|
|
#schema_search_path: myapp,sharedapp,public |
|
|
#schema_search_path: myapp,sharedapp,public |
|
@ -46,10 +46,12 @@ development: |
|
|
test: |
|
|
test: |
|
|
adapter: postgresql |
|
|
adapter: postgresql |
|
|
encoding: unicode |
|
|
encoding: unicode |
|
|
database: starterapp_test |
|
|
database: <%= ENV['STARTER_APP_TEST_DB_DATABASE'] || 'starterapp_test' %> |
|
|
pool: 5 |
|
|
pool: 5 |
|
|
username: postgres |
|
|
username: <%= ENV['STARTER_APP_TEST_DB_USER'] || 'postgres' %> |
|
|
password: |
|
|
password: <%= ENV['STARTER_APP_TEST_DB_PASSWORD'] %> |
|
|
|
|
|
host: <%= ENV['STARTER_APP_TEST_DB_HOST'] || 'localhost' %> |
|
|
|
|
|
port: <%= ENV['STARTER_APP_TEST_DB_PORT'] || '5432' %> |
|
|
|
|
|
|
|
|
production: |
|
|
production: |
|
|
adapter: postgresql |
|
|
adapter: postgresql |
|
|