[openstreetmap/openstreetmap-website] Problem with running project in production environment (#2744)

Meraj Nouredini notifications at github.com
Sun Aug 2 10:46:51 UTC 2020

It seems strange but I found that I got those errors because the production db config is not set correctly, I wanted to use environment variables to pass the db config to the app, and to do that I used the below database.yml:

  adapter: postgresql
  database: <%= ENV['OSM_DB'] %>
  username: <%= ENV['OSM_DB_USER'] %>
  password: <%= ENV['OSM_DB_PASSWORD'] %>
  host: <%= ENV['OSM_DB_HOST'] %>
  encoding: utf8

after hard coding those variables in the config file, the errors are gone and everything seems to work fine

You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20200802/128fd18a/attachment.htm>

More information about the rails-dev mailing list