Jammit编译错误如何调试?

发布于 2024-11-02 10:02:00 字数 1981 浏览 0 评论 0原文

有人以前见过这个吗?

2011-04-20T18:45:07+00:00 app[web.1]: Jammit::OutputNotWritable (Jammit doesn't have permission to write to "/app/public/assets"):
2011-04-20T18:45:07+00:00 app[web.1]:   lib/rack/www.rb:7:in `call'
2011-04-20T18:45:07+00:00 app[web.1]: 
2011-04-20T18:45:07+00:00 app[web.1]: 
2011-04-20T18:45:07+00:00 app[web.2]: 
2011-04-20T18:45:07+00:00 app[web.2]: 
2011-04-20T18:45:07+00:00 app[web.2]: Started GET "/assets/beta.js" for 10.249.54.132 at Wed Apr 20 11:45:07 -0700 2011
2011-04-20T18:45:07+00:00 app[web.2]: 
2011-04-20T18:45:07+00:00 app[web.2]: Jammit::OutputNotWritable (Jammit doesn't have permission to write to "/app/public/assets"):
2011-04-20T18:45:07+00:00 app[web.2]:   lib/rack/www.rb:7:in `call'



heroku jammit:deploy
===== Compiling assets.../Library/Ruby/Gems/1.8/gems/closure-compiler-1.0.0/lib/closure/compiler.rb:42:in `compress': stdin:17494: ERROR - Parse error. Internet Explorer has a non-standard intepretation of trailing commas. Arrays will have the wrong length and objects will not parse at all. (Closure::Error)
};
 ^

1 error(s), 0 warning(s)
    from /Library/Ruby/Gems/1.8/gems/jammit-0.6.0/lib/jammit/compressor.rb:72:in `compress_js'
    from /Library/Ruby/Gems/1.8/gems/jammit-0.6.0/lib/jammit/packager.rb:82:in `pack_javascripts'
    from /Library/Ruby/Gems/1.8/gems/jammit-0.6.0/lib/jammit/packager.rb:40:in `precache_all'
    from /Library/Ruby/Gems/1.8/gems/jammit-0.6.0/lib/jammit/packager.rb:40:in `each'
    from /Library/Ruby/Gems/1.8/gems/jammit-0.6.0/lib/jammit/packager.rb:40:in `precache_all'
    from /Library/Ruby/Gems/1.8/gems/jammit-0.6.0/lib/jammit.rb:124:in `package!'
    from /Library/Ruby/Gems/1.8/gems/jammit-0.6.0/bin/../lib/jammit/command_line.rb:29:in `initialize'
    from /Library/Ruby/Gems/1.8/gems/jammit-0.6.0/bin/jammit:5:in `new'
    from /Library/Ruby/Gems/1.8/gems/jammit-0.6.0/bin/jammit:5
    from /usr/bin/jammit:19:in `load'
    from /usr/bin/jammit:19
[FAIL]

Anyone seen this before?

2011-04-20T18:45:07+00:00 app[web.1]: Jammit::OutputNotWritable (Jammit doesn't have permission to write to "/app/public/assets"):
2011-04-20T18:45:07+00:00 app[web.1]:   lib/rack/www.rb:7:in `call'
2011-04-20T18:45:07+00:00 app[web.1]: 
2011-04-20T18:45:07+00:00 app[web.1]: 
2011-04-20T18:45:07+00:00 app[web.2]: 
2011-04-20T18:45:07+00:00 app[web.2]: 
2011-04-20T18:45:07+00:00 app[web.2]: Started GET "/assets/beta.js" for 10.249.54.132 at Wed Apr 20 11:45:07 -0700 2011
2011-04-20T18:45:07+00:00 app[web.2]: 
2011-04-20T18:45:07+00:00 app[web.2]: Jammit::OutputNotWritable (Jammit doesn't have permission to write to "/app/public/assets"):
2011-04-20T18:45:07+00:00 app[web.2]:   lib/rack/www.rb:7:in `call'



heroku jammit:deploy
===== Compiling assets.../Library/Ruby/Gems/1.8/gems/closure-compiler-1.0.0/lib/closure/compiler.rb:42:in `compress': stdin:17494: ERROR - Parse error. Internet Explorer has a non-standard intepretation of trailing commas. Arrays will have the wrong length and objects will not parse at all. (Closure::Error)
};
 ^

1 error(s), 0 warning(s)
    from /Library/Ruby/Gems/1.8/gems/jammit-0.6.0/lib/jammit/compressor.rb:72:in `compress_js'
    from /Library/Ruby/Gems/1.8/gems/jammit-0.6.0/lib/jammit/packager.rb:82:in `pack_javascripts'
    from /Library/Ruby/Gems/1.8/gems/jammit-0.6.0/lib/jammit/packager.rb:40:in `precache_all'
    from /Library/Ruby/Gems/1.8/gems/jammit-0.6.0/lib/jammit/packager.rb:40:in `each'
    from /Library/Ruby/Gems/1.8/gems/jammit-0.6.0/lib/jammit/packager.rb:40:in `precache_all'
    from /Library/Ruby/Gems/1.8/gems/jammit-0.6.0/lib/jammit.rb:124:in `package!'
    from /Library/Ruby/Gems/1.8/gems/jammit-0.6.0/bin/../lib/jammit/command_line.rb:29:in `initialize'
    from /Library/Ruby/Gems/1.8/gems/jammit-0.6.0/bin/jammit:5:in `new'
    from /Library/Ruby/Gems/1.8/gems/jammit-0.6.0/bin/jammit:5
    from /usr/bin/jammit:19:in `load'
    from /usr/bin/jammit:19
[FAIL]

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

凑诗 2024-11-09 10:02:00

Heroku 的文件系统是只读的,您需要上传压缩的样式表/ JavaScript,而不是在服务器上运行 jammit。

Heroku's filesystem is read only, you will need to upload the compressed stylesheets / javascripts as opposed to running jammit on the server.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文