资产管道内部错误:递归太多

发布于 2025-01-03 02:47:56 字数 708 浏览 2 评论 0原文

我遇到了麻烦:)

我尝试使用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 技术交流群。

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

发布评论

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

评论(1

翻了热茶 2025-01-10 02:47:56

解决方案是将 therubyracer 和 execjs 添加到我的生产环境中。

group :staging, :production do
  gem "therubyracer", "0.9.9"
  gem "execjs",       "1.3.0"
end

The solution was to add therubyracer and execjs to my production environment.

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