Skip to content

Commit

Permalink
chore(CE): configure database from env (#549)
Browse files Browse the repository at this point in the history
Co-authored-by: datafloyd <[email protected]>
  • Loading branch information
github-actions[bot] and subintp authored Dec 24, 2024
1 parent 4103196 commit 800b6fb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions server/config/database.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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" } %>

0 comments on commit 800b6fb

Please sign in to comment.