Skip to content

Commit

Permalink
interpolate DB connection string via env variables and ERB
Browse files Browse the repository at this point in the history
  • Loading branch information
donrestarone committed Nov 30, 2024
1 parent 364198c commit 5e19285
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions config/blazer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,7 @@

data_sources:
main:
# url: <%= ENV["BLAZER_DATABASE_URL"] %>
host: <%= ENV['DATABASE_HOST'] %>
port: <%= ENV['DATABASE_PORT'] %>
database: <%= ENV['DATABASE_NAME'] %>
username: <%= ENV['DATABASE_USERNAME'] %>
password: <%= ENV['DATABASE_PASSWORD'] %>
url: <%= "postgres://#{ENV['DATABASE_USERNAME']}:#{ENV['DATABASE_PASSWORD']}@#{ENV['DATABASE_HOST']}:5432/#{ENV['DATABASE_NAME']}" %>
# statement timeout, in seconds
# none by default
# timeout: 15
Expand Down

0 comments on commit 5e19285

Please sign in to comment.