Skip to content

Commit d635b9e

Browse files
the env does not have DB credentials at build time
but we still want to be able to compile assets
1 parent e343351 commit d635b9e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

samples/rails/app/config/database.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
default: &default
22
adapter: postgresql
33
pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>
4-
username: <%= ENV.fetch("DATABASE_USERNAME") %>
5-
password: <%= ENV.fetch("DATABASE_PASSWORD") %>
6-
host: <%= ENV.fetch("DATABASE_HOST") %>
4+
username: <%= ENV["DATABASE_USERNAME"] %>
5+
password: <%= ENVs["DATABASE_PASSWORD"] %>
6+
host: <%= ENV["DATABASE_HOST"] %>
77
port: 5432
88
timeout: 5000
99

0 commit comments

Comments
 (0)