Gracefully fail config build when master secret not available
When the credentials are not accessible, e.g. on CI, parsing the database config fails otherwise.
This commit is contained in:
@@ -25,6 +25,6 @@ production:
|
||||
adapter: postgresql
|
||||
database: akkounts
|
||||
port: 5432
|
||||
host: <%= Rails.application.credentials.postgres[:host] %>
|
||||
username: <%= Rails.application.credentials.postgres[:username] %>
|
||||
password: <%= Rails.application.credentials.postgres[:password] %>
|
||||
host: <%= Rails.application.credentials.postgres[:host] rescue nil %>
|
||||
username: <%= Rails.application.credentials.postgres[:username] rescue nil %>
|
||||
password: <%= Rails.application.credentials.postgres[:password] rescue nil %>
|
||||
|
||||
Reference in New Issue
Block a user