耙子流产了!ExecJS :: RuntimeError:(execjs):1

Jor*_*rge 3 jquery ruby-on-rails maskedinput sprockets asset-pipeline

在生产服务器上进行预编译时出现错误;但是,如果我将环境设置为生产环境并在开发计算机上运行预编译,则运行正常。怎么可能呢?

RAILS_ENV="production" bundle exec rake assets:precompile RAILS_GROUPS=assets
Run Code Online (Sandbox Code Playgroud)

返回错误:

   ...
   rake aborted!
   ExecJS::RuntimeError:
   (execjs):1
   ...
Run Code Online (Sandbox Code Playgroud)

我根本不知道错误是从哪里来的。

Jor*_*rge 7

简单:我的生产服务器的RAM内存不足。我将它提高了一点到1GB,现在它就像一个魅力!