Rails错误命中服务器启动时的url:Spree / home #index中的ExecJS :: RuntimeError

时间:2013-02-13 17:53:53

标签: ruby-on-rails ruby-on-rails-3 node.js ruby-on-rails-3.2 spree

我正在尝试在mac os上设置代码。它在ubuntu上运行得很好。我安装了所有的宝石,当我打开服务器后点击网址时,我收到此错误。非常沮丧

Showing /Users/ayruskrishna/code/krizda/app/views/spree/shared/_header.html.erb where line #13 raised:

FATAL ERROR: CodeRange::GetNextAllocationBlock Allocation failed - process out of memory

  (in /Users/ayruskrishna/.rvm/gems/ruby-1.9.3-p385/gems/spree_core-1.2.0/app/assets/javascripts/store/checkout.js.coffee)
Extracted source (around line #13):

10: <%= favicon_link_tag '/assets/favicon1.ico' %>
11: <%= stylesheet_link_tag 'store/all', :media => 'screen' %>
12: <%= csrf_meta_tags %>
13: <%= javascript_include_tag 'store/all' %>
14: </head>
15: <body>
16:   <div class="wrap">
Trace of template inclusion: app/views/layouts/spree.html.erb

Rails.root: /Users/ayruskrishna/code/krizda

1 个答案:

答案 0 :(得分:1)

看来你正在使用Spree 1.2.0我建议尝试更新的版本(v1.2.4可在同一稳定行中使用)。我还要检查Activity Monitor OS X应用程序..对我来说,一个狂欢商店通常使用不到200MB的RAM。

您还可以考虑使用替代Web服务器... http://puma.io/声称内存占用空间明显小于其他一些替代方案。