Ruby on Rails Rake assets:precompile error

后端 未结 7 1459
-上瘾入骨i
-上瘾入骨i 2020-12-06 00:22

I\'m new in Rails development and this is my first deployment to Heroku. When I execute my application (after the deployment) there is an error:

2011-09-18T2         


        
7条回答
  •  误落风尘
    2020-12-06 00:55

    I ran into this issue as well and I resolved it by doing the following:

    Open up config/environments/production.rb and make sure the following option is set to true:

    # Don't fallback to assets pipeline if a precompiled asset is missed
    config.assets.compile = true
    

    Then run:

    rake assets:precompile --trace RAILS_ENV=production
    

    Hope this helps!

    ~Kevin

提交回复
热议问题