From 800b6fba482e5e63e764195e5f8df9368f2bdea1 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Tue, 24 Dec 2024 11:25:19 +0530 Subject: [PATCH] chore(CE): configure database from env (#549) Co-authored-by: datafloyd --- server/config/database.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/server/config/database.yml b/server/config/database.yml index 0de161a4..77737fa9 100644 --- a/server/config/database.yml +++ b/server/config/database.yml @@ -8,18 +8,18 @@ development: host: <%= ENV['DB_HOST'] %> username: <%= ENV['DB_USERNAME'] %> password: <%= ENV['DB_PASSWORD'] %> - database: multiwoven_server_development + database: <%= ENV.fetch("DB_NAME") { "multiwoven_server_development" } %> test: <<: *default host: <%= ENV['DB_HOST'] %> username: <%= ENV['DB_USERNAME'] %> password: <%= ENV['DB_PASSWORD'] %> - database: multiwoven_server_test + database: <%= ENV.fetch("DB_NAME") { "multiwoven_server_test" } %> production: <<: *default host: <%= ENV['DB_HOST'] %> username: <%= ENV['DB_USERNAME'] %> password: <%= ENV['DB_PASSWORD'] %> - database: multiwoven_server_production + database: <%= ENV.fetch("DB_NAME") { "multiwoven_server_production" } %>