Skip to content

Commit 5a607e9

Browse files
committed
Replace DATABASE_URL with DATABASE_NAME
We used to connect to it through the PostgreSQL URL but that ENV var is no longer present in the server and we have `DATABASE_NAME` instead. That's what we already used successfully with the `next` environment. This is required to deploy using the `production` environment or the app won't be able to connect to the DB.
1 parent f0c8241 commit 5a607e9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

config/database.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ staging:
3131
database: <%= ENV.fetch('DATABASE_NAME', 'timeoverflow_staging') %>
3232

3333
production:
34-
# Set DATABASE_URL environment variable
35-
url: <%= ENV['DATABASE_URL'] %>
34+
<<: *defaults
35+
database: <%= ENV.fetch('DATABASE_NAME', 'timeoverflow_production') %>
3636

3737
next:
3838
<<: *defaults

0 commit comments

Comments
 (0)