Jammit :: MissingConfiguration - precache_all ': -base-url option required to generate MHTML

Has anyone seen this while trying to use 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]

Ideas? Thanks

+3
source share
2 answers

I had the same problem with my rake task.

namespace :assets do
  task :package do
    Jammit.package!
  end
end

This happens when you use the embed_assets option. To fix this, I added: the base_url parameter for .package! and now it works as before.

namespace :assets do
  task :package do
    Jammit.package! :base_url => "http://mysite.org/"
  end
end
+1
source

I don’t know if this can help, but we had the same problem, and returning jammit to 0.6 resolved it!

+3
source

All Articles