小编Joh*_*len的帖子

Cannot load `Rails.application.database_configuration`: (NoMethodError) with launching to Heroku

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 …

ruby ruby-on-rails heroku

3
推荐指数
1
解决办法
6135
查看次数

标签 统计

heroku ×1

ruby ×1

ruby-on-rails ×1