mirror of
https://github.com/projekteuler/projekteuler.git
synced 2026-11-23 19:33:46 +01:00
Get production database config from environment variables
This commit is contained in:
1 parent
9d810b3d2e
commit
68fdc5e618
1 file changed
+5
-1
+5
-1
@@ -22,4 +22,8 @@ test:
|
|||||||
|
|
||||||
production:
|
production:
|
||||||
<<: *default
|
<<: *default
|
||||||
database: db/production.sqlite3
|
adapter: mysql2
|
||||||
|
encoding: utf8
|
||||||
|
database: <%= ENV['DATABASE_NAME'] %>
|
||||||
|
username: <%= ENV['DATABASE_USERNAME'] %>
|
||||||
|
password: <%= ENV['DATABASE_PASSWORD'] %>
|
||||||
Reference in new issue
Block a user