I'm an intermediate Rails developer and I am using a remote database as my sole connection in a production environment. My stack is Rails 5 and Ruby 2.4.0. I have already set the environment variables up for the database such as USERNAME and PASSWORD. When I deploy to Heroku I get this error message:
Cannot load `Rails.application.database_configuration`: (NoMethodError)
undefined method `[]' for nil:NilClass
Run Code Online (Sandbox Code Playgroud)
I'm assuming this is because that Rails can't see the environment variables, but even when I hard …