Closed tansaku closed 5 years ago
our vanity.yml is as mentioned in https://github.com/assaf/vanity/issues/349
it's probably related to our production config:
production:
active_record_adapter: postgresql
<% uri = URI.parse(ENV['DATABASE_URL']) rescue uri = nil %>
<% if uri %>
host: <%= uri.host %>
username: <%= uri.username %>
password: <%= uri.password %>
port: <%= uri.port %>
database: <%= uri.path.sub('/', '') %>
<% end %>
and the way the heroku DATABASE_URL is structured ...
ah, okay, so the problem was that it should be uri.user
not uri.username