Add config for lndhub postgres/admin
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
@@ -13,9 +13,15 @@ development:
|
||||
primary:
|
||||
<<: *default
|
||||
database: db/development.sqlite3
|
||||
# lndhub:
|
||||
# <<: *default
|
||||
# database: db/lndhub.sqlite3
|
||||
lndhub:
|
||||
<<: *default
|
||||
adapter: postgresql
|
||||
database_tasks: false
|
||||
host: <%= ENV.fetch("LNDHUB_PG_HOST") { 'localhost' } %>
|
||||
port: <%= ENV.fetch("LNDHUB_PG_PORT") { 5432 } %>
|
||||
database: <%= ENV.fetch("LNDHUB_PG_DATABASE") { 'lndhub' } %>
|
||||
username: <%= ENV.fetch("LNDHUB_PG_USERNAME") { 'lndhub' } %>
|
||||
password: <%= ENV.fetch("LNDHUB_PG_PASSWORD") %>
|
||||
|
||||
# Warning: The database defined as "test" will be erased and
|
||||
# re-generated from your development database when you run "rake".
|
||||
@@ -42,8 +48,8 @@ production:
|
||||
<<: *default
|
||||
adapter: postgresql
|
||||
database_tasks: false
|
||||
database: lndhub
|
||||
port: 5432
|
||||
host: <%= Rails.application.credentials.postgres[:host] rescue nil %>
|
||||
username: <%= Rails.application.credentials.postgres[:username] rescue nil %>
|
||||
password: <%= Rails.application.credentials.postgres[:password] rescue nil %>
|
||||
host: <%= ENV.fetch("LNDHUB_PG_HOST") { 'localhost' } %>
|
||||
port: <%= ENV.fetch("LNDHUB_PG_PORT") { 5432 } %>
|
||||
database: <%= ENV.fetch("LNDHUB_PG_DATABASE") { 'lndhub' } %>
|
||||
username: <%= ENV.fetch("LNDHUB_PG_USERNAME") { 'lndhub' } %>
|
||||
password: <%= ENV.fetch("LNDHUB_PG_PASSWORD") %>
|
||||
|
||||
Reference in New Issue
Block a user