-----> Preparing app for Rails asset pipeline Running: rake assets:precompile I,[2013-03-12T03:28:29.908234 #912] INFO -- : Writing /tmp/build_1n6yi8lwna3sj/public/assets/rails-2ee5a98f26fbf8c6c461127da73c47eb.png I,[2013-03-12T03:28:29.914096 #912] INFO -- : Writing /tmp/build_1n6yi8lwna3sj/public/assets/trash-3c3c2861eca3747315d712bcfc182902.png I,[2013-03-12T03:28:33.963234 #912] INFO -- : Writing /tmp/build_1n6yi8lwna3sj/public/assets/application-bf2525bd32aa2a7068dbcfaa591b3874.js I,[2013-03-12T03:28:40.362850 #912] INFO -- : Writing /tmp/build_1n6yi8lwna3sj/public/assets/application-13374a65f29a3b4cea6f8da2816ce7ff.css Asset precompilation completed (14.36s)
Heroku似乎编译文件,但把它放在/ tmp没有任何错误。我的问题是:
> Heroku如何将资源文件编译到/ tmp?
>我的最后一个解决方案是运行RAILS_ENV = production bundle exec rake assets:本地预编译,但是这会在public / assets而不是manifest.yml中生成manifest-xxxxxx.json,这样heroku就不会检测到JSON清单文件。我通过手动创建一个yml从json文件排序,heroku开心了。有heroku的方法已经过时了吗?