有人在尝试使用jammit时看到过这一点吗?
$ heroku jammit:deploy
===== Compiling assets.../Library/Ruby/Gems/1.8/gems/jammit-0.6.3/lib/jammit/packager.rb:47:in `precache_all': A --base-url option is required in order to generate MHTML. (Jammit::MissingConfiguration)
from /Library/Ruby/Gems/1.8/gems/jammit-0.6.3/lib/jammit/packager.rb:42:in `each'
from /Library/Ruby/Gems/1.8/gems/jammit-0.6.3/lib/jammit/packager.rb:42:in `precache_all'
from /Library/Ruby/Gems/1.8/gems/jammit-0.6.3/lib/jammit.rb:132:in `package!'
from /Library/Ruby/Gems/1.8/gems/jammit-0.6.3/bin/../lib/jammit/command_line.rb:29:in `initialize'
from /Library/Ruby/Gems/1.8/gems/jammit-0.6.3/bin/jammit:5:in `new'
from /Library/Ruby/Gems/1.8/gems/jammit-0.6.3/bin/jammit:5
from /usr/bin/jammit:19:in `load'
from /usr/bin/jammit:19
[FAIL]
想法?感谢
不知道这是否有帮助,但我们刚刚遇到了同样的问题,将jammit恢复到0.6就解决了!
我的rake任务也遇到了同样的问题。
namespace :assets do
task :package do
Jammit.package!
end
end
当您使用"embed_assets"选项时,就会发生这种情况。为了修复它,我添加了:package的base_url参数!调用,现在它和以前一样工作。
namespace :assets do
task :package do
Jammit.package! :base_url => "http://mysite.org/"
end
end