我正在使用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並關閉自動編譯,會不會有任何後果? –