When pushing a Rails 3.2.11 app to heroku, running rake assets:precompile
or RAILS_ENV=production rake assets:precompile
doesn't seem to make assets available - it doesn't matter if I run this rake task locally or not.
The only solution is to set config.assets.compile = true
in production.rb
which seems to make the app super slow in production.
I haven't had this issue with other applications.
How do I diagnose what the deal is?
在本地运行此任务时,请确保已提交新创建的文件。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.