(erb):23:in `fetch': key not found: "USER" (KeyError)
When starting the application with using a DATABASE_URL
, it will be merged with and takes precedence over the configuration in database.yml
.
When evaluating database.yml
without setting the USER
environmental variable, an error is thrown
https://framagit.org/incommon.cc/incommon-api/blob/d362c36f63fbe454ddb1a78b962d45041366cdb8/config/database.yml#L7 https://framagit.org/incommon.cc/incommon-api/blob/d362c36f63fbe454ddb1a78b962d45041366cdb8/config/database.yml#L23
as the above cannot be evaluated, and no database connection can be constructed.
References: