【问题标题】:asset pipeline InternalError: too much recursion资产管道内部错误:递归过多
【发布时间】:2012-02-28 01:12:26
【问题描述】:

我遇到了麻烦:)

我正在尝试使用 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 assets:precompile RAILS_ENV=development --trace),他不哭...

有人可以帮忙吗?

更新:

我尝试在生产环境中编译 => rake assets:precompile RAILS_ENV=production --trace 又一次成功了……

【问题讨论】:

    标签: ruby-on-rails coffeescript asset-pipeline precompile


    【解决方案1】:

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

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2012-01-23
      • 1970-01-01
      • 2023-03-31
      • 1970-01-01
      • 2022-08-15
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多