Unicorn triggers mongoid error during assets precompile

后端 未结 2 1790
悲哀的现实
悲哀的现实 2020-12-17 19:22

I have a rails app using Mongoid 3 running on Heroku. I\'ve just updated it to use Unicorn. When I try to deploy it to Heroku I get the following error :

Run         


        
2条回答
  •  南方客
    南方客 (楼主)
    2020-12-17 19:43

    Rails 3:

    Try to turn off app initialization when pre-compiling assets:

    # config/application.rb
    config.assets.initialize_on_precompile = false
    

    The line should already be there commented out.

提交回复
热议问题