<p></p>
<p>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:</p>
<pre><code>production:
  adapter: postgresql
  database: <%= ENV['OSM_DB'] %>
  username: <%= ENV['OSM_DB_USER'] %>
  password: <%= ENV['OSM_DB_PASSWORD'] %>
  host: <%= ENV['OSM_DB_HOST'] %>
  encoding: utf8
</code></pre>
<p>after hard coding those variables in the config file, the errors are gone and everything seems to work fine</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/openstreetmap/openstreetmap-website/issues/2744#issuecomment-667658002">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLMI7KHC5VARS5DTBPLR6U7ZXANCNFSM4PSPITDA">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AAK2OLJMWIHRK5D5NENZ64LR6U7ZXA5CNFSM4PSPITDKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOE7F2OEQ.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/openstreetmap-website/issues/2744#issuecomment-667658002",
"url": "https://github.com/openstreetmap/openstreetmap-website/issues/2744#issuecomment-667658002",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>