dotenv instead of Rails credentials
The deployment is done on a Dokku server. It sets the DATABASE_URL automatically.
This commit is contained in:
parent
85d12b5c77
commit
e4af4c21ae
6 changed files with 12 additions and 17 deletions
|
|
@ -9,7 +9,7 @@ production:
|
|||
primary:
|
||||
<<: *default
|
||||
# database: storage/production.sqlite3
|
||||
url: <%= Rails.application.credentials.db.url %>
|
||||
url: <%= ENV['DATABASE_URL'] %>
|
||||
pool: 10
|
||||
cache:
|
||||
<<: *default
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue