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 assets:precompile RAILS_ENV=development --trace),他不哭……

有人可以帮忙吗?

更新:

我已经尝试在生产环境中编译 => rake assets:precompile RAILS_ENV=production --trace 并且它再次工作......

4

1 回答 1

1

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

group :staging, :production do
  gem "therubyracer", "0.9.9"
  gem "execjs",       "1.3.0"
end
于 2012-02-08T17:13:38.747 回答