dotenv instead of Rails credentials

The deployment is done on a Dokku server. It sets the DATABASE_URL
automatically.
This commit is contained in:
Christoph Haas 2025-04-07 22:25:55 +02:00
parent 85d12b5c77
commit e4af4c21ae
6 changed files with 12 additions and 17 deletions

View file

@ -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