资产管道内部错误:递归太多
我遇到了麻烦:)
我尝试使用rails 3.2.1和coffee-rails 3.2.2部署一个应用程序,但是当资产编译发生时,我收到一个内部错误,
*** [out :: ] Compiling: coffee-script.js
*** [err :: ] rake aborted!
*** [err :: ]
*** [err :: ] InternalError: too much recursion
*** [err :: ] (in ~/project/shared/bundle/ruby/1.9.1/gems/coffee-rails-3.2.2/lib/assets/javascripts/coffee-script.js.erb)
*** [err :: ]
*** [err :: ]
*** [err :: ] Tasks: TOP => assets:precompile:primary
*** [err :: ]
*** [err :: ] (See full trace by running task with --trace)
我在本地尝试了它(rake asset:precompile RAILS_ENV=development --跟踪),他不哭……
有人能帮忙吗?
更新:
我尝试在生产环境中进行编译=> rake 资产:预编译 RAILS_ENV=生产 --trace 再次它起作用了......
i m in troubles :)
Im trying to deploy an app with rails 3.2.1 and coffee-rails 3.2.2, but when the assets compilation occure, i get an internal error
*** [out :: ] Compiling: coffee-script.js
*** [err :: ] rake aborted!
*** [err :: ]
*** [err :: ] InternalError: too much recursion
*** [err :: ] (in ~/project/shared/bundle/ruby/1.9.1/gems/coffee-rails-3.2.2/lib/assets/javascripts/coffee-script.js.erb)
*** [err :: ]
*** [err :: ]
*** [err :: ] Tasks: TOP => assets:precompile:primary
*** [err :: ]
*** [err :: ] (See full trace by running task with --trace)
i tried it locally (rake assets:precompile RAILS_ENV=development --trace) and he don't cry ...
Can anybody help?
UPDATE:
I ve tried to compile in the production env => rake assets:precompile RAILS_ENV=production --trace
and again it works ...
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
解决方案是将 therubyracer 和 execjs 添加到我的生产环境中。
The solution was to add therubyracer and execjs to my production environment.