我正在使用rails 4.2.0 + amazon clodfront + Heroku。Heroku Rails应用程序资产管理
在我的config/environments/production.rb中,我将此配置设置为true。
# Don't fallback to assets pipeline if a precompiled asset is missed
config.assets.compile = true
我经常问自己,这是否应该设置为false? 由于我很困惑我是否应该手动编译资产,然后将其推送到heroku, 或将其设置为true?
请给我最好的做法。
我认为这已在这里解释http://stackoverflow.com/questions/8821864/config-assets-compile-true-in-rails-production-why-not – Emanuel
@ siaw23 +1,但我使用亚马逊如果我预先编译资产,并将其推送到heroku并关闭自动编译,会不会有任何后果? –