3

有人在尝试使用 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]

想法?谢谢

4

2 回答 2

3

不知道这是否有帮助,但我们遇到了同样的问题,将 jammit 恢复到 0.6 解决了它!

于 2011-05-27T14:16:50.297 回答
1

我的 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
于 2011-05-31T09:21:31.350 回答