Use plain hash for ENV vars
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
c44ce61e25
commit
c2e0909132
@ -1,12 +1,6 @@
|
|||||||
# SQLite. Versions 3.8.0 and up are supported.
|
|
||||||
# gem install sqlite3
|
|
||||||
#
|
|
||||||
# Ensure the SQLite 3 gem is defined in your Gemfile
|
|
||||||
# gem 'sqlite3'
|
|
||||||
#
|
|
||||||
default: &default
|
default: &default
|
||||||
adapter: sqlite3
|
adapter: sqlite3
|
||||||
pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>
|
pool: <%= ENV["DB_POOL"] || ENV['MAX_THREADS'] || 5 %>
|
||||||
timeout: 5000
|
timeout: 5000
|
||||||
|
|
||||||
development:
|
development:
|
||||||
@ -17,11 +11,11 @@ development:
|
|||||||
<<: *default
|
<<: *default
|
||||||
adapter: postgresql
|
adapter: postgresql
|
||||||
database_tasks: false
|
database_tasks: false
|
||||||
host: <%= ENV.fetch("LNDHUB_PG_HOST") { 'localhost' } %>
|
host: <%= ENV["LNDHUB_PG_HOST"] || 'localhost' %>
|
||||||
port: <%= ENV.fetch("LNDHUB_PG_PORT") { 5432 } %>
|
port: <%= ENV["LNDHUB_PG_PORT"] || 5432 %>
|
||||||
database: <%= ENV.fetch("LNDHUB_PG_DATABASE") { 'lndhub' } %>
|
database: <%= ENV["LNDHUB_PG_DATABASE"] || 'lndhub' %>
|
||||||
username: <%= ENV.fetch("LNDHUB_PG_USERNAME") { 'lndhub' } %>
|
username: <%= ENV["LNDHUB_PG_USERNAME"] || 'lndhub' %>
|
||||||
password: <%= ENV.fetch("LNDHUB_PG_PASSWORD") %>
|
password: <%= ENV["LNDHUB_PG_PASSWORD"] %>
|
||||||
|
|
||||||
# Warning: The database defined as "test" will be erased and
|
# Warning: The database defined as "test" will be erased and
|
||||||
# re-generated from your development database when you run "rake".
|
# re-generated from your development database when you run "rake".
|
||||||
@ -48,8 +42,8 @@ production:
|
|||||||
<<: *default
|
<<: *default
|
||||||
adapter: postgresql
|
adapter: postgresql
|
||||||
database_tasks: false
|
database_tasks: false
|
||||||
host: <%= ENV.fetch("LNDHUB_PG_HOST") { 'localhost' } %>
|
host: <%= ENV["LNDHUB_PG_HOST"] || 'localhost' %>
|
||||||
port: <%= ENV.fetch("LNDHUB_PG_PORT") { 5432 } %>
|
port: <%= ENV["LNDHUB_PG_PORT"] || 5432 %>
|
||||||
database: <%= ENV.fetch("LNDHUB_PG_DATABASE") { 'lndhub' } %>
|
database: <%= ENV["LNDHUB_PG_DATABASE"] || 'lndhub' %>
|
||||||
username: <%= ENV.fetch("LNDHUB_PG_USERNAME") { 'lndhub' } %>
|
username: <%= ENV["LNDHUB_PG_USERNAME"] || 'lndhub' %>
|
||||||
password: <%= ENV.fetch("LNDHUB_PG_PASSWORD") %>
|
password: <%= ENV["LNDHUB_PG_PASSWORD"] %>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user