correct parsing

This commit is contained in:
Sam 2013-12-18 17:21:01 +11:00
parent 573e3bd348
commit a7421f8612
1 changed files with 1 additions and 1 deletions

View File

@ -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 %>