Force add database.yml with ENV vars for Docker deployment
This commit is contained in:
10
config/database.yml
Normal file
10
config/database.yml
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
production:
|
||||||
|
adapter: mysql2
|
||||||
|
encoding: utf8mb4
|
||||||
|
pool: 25
|
||||||
|
host: <%= ENV.fetch('DATABASE_HOST', '54.151.188.42') %>
|
||||||
|
port: <%= ENV.fetch('DATABASE_PORT', '13306') %>
|
||||||
|
wait_timeout: 60
|
||||||
|
database: <%= ENV.fetch('DATABASE_NAME', 'foodcourt') %>
|
||||||
|
username: <%= ENV.fetch('DATABASE_USER', 'foodcourt') %>
|
||||||
|
password: <%= ENV.fetch('DATABASE_PASSWORD', 'foodcourt') %>
|
||||||
Reference in New Issue
Block a user