Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
saliceti committed Nov 4, 2024
1 parent 98b2043 commit e0a0955
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions config/database.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
default: &default
adapter: postgis
encoding: unicode
# AKS DATABASE_URL will start with `postgres://`, which overrides the postgis adapter
# so we need to replace `postgres` if it occurs at the beginning of DATABASE_URL
url: <%= ENV.fetch('DATABASE_URL', 'postgis://postgres@localhost:5432').sub(/^postgres/, "postgis") %>
# For details on connection pooling, see Rails configuration guide
# http://guides.rubyonrails.org/configuring.html#database-pooling
pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>
Expand Down

0 comments on commit e0a0955

Please sign in to comment.