“rake aborted! stack level too deep” while deploying to Heroku

后端 未结 3 1617
不知归路
不知归路 2021-02-02 13:52

My website used to be working and Heroku precompiled the assets and everything. Now, seemingly out of nowhere, I started to get this message on deploy:

Preparing         


        
3条回答
  •  傲寒
    傲寒 (楼主)
    2021-02-02 13:55

    For ruby 2.3.0 or lower versions are having the following line in application.rb file for Rails. But 2.4.0 or higher have implemented those as automated.

    Bundler.require(*Rails.groups)

    Changing the ruby version to 2.3.0 did the trick. This one saved my day.

提交回复
热议问题