mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 08:57:10 -06:00
correct parsing
This commit is contained in:
parent
573e3bd348
commit
a7421f8612
@ -40,7 +40,7 @@ production:
|
||||
pool: <%= ENV['POSTGRES_CONNECTION_POOL'] || 5 %>
|
||||
timeout: 5000
|
||||
adapter: postgresql
|
||||
uri: <%= uri = URI.parse(ENV['POSTGRES_URL']) %>
|
||||
uri: <%= uri = URI.parse(ENV['POSTGRES_URL'] ? ENV['POSTGRES_URL'] : "pg://localhost") %>
|
||||
socket: <%= ENV['POSTGRES_SOCKET'] %>
|
||||
host: <%= uri.host %>
|
||||
port: <%= uri.port || 5432 %>
|
||||
|
Loading…
Reference in New Issue
Block a user