|
|
@ -1,18 +1,16 @@ |
|
|
|
--- |
|
|
|
|
|
|
|
default: &default |
|
|
|
host: <%= ENV.include?('container_hostname')? 'ct1.lxd':'localhost' %> |
|
|
|
database: &db-name easy-going-rails |
|
|
|
user: *db-name |
|
|
|
password: *db-name |
|
|
|
adapter: postgresql |
|
|
|
encoding: unicode |
|
|
|
# For details on connection pooling, see Rails configuration guide |
|
|
|
# https://guides.rubyonrails.org/configuring.html#database-pooling |
|
|
|
pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %> |
|
|
|
host: <%= ENV.include?('container_hostname')? 'ct1.lxd':'localhost' %> |
|
|
|
pool: 5 |
|
|
|
|
|
|
|
development: |
|
|
|
<<: *default |
|
|
|
database: &db-name easy-going-rails |
|
|
|
user: *db-name |
|
|
|
password: *db-name |
|
|
|
|
|
|
|
test: |
|
|
|
<<: *default |