jserrano jserrano - 3 years ago 227
jQuery Question

rake aborted! ExecJS::RuntimeError: (execjs):1

I'm getting an error while precompiling on production server; however, if I set the environment as production and run the precompilation on the development computer, it runs ok. How can it be possible?

RAILS_ENV="production" bundle exec rake assets:precompile RAILS_GROUPS=assets

error returned:

rake aborted!

I have no clue whatsoever on where's the error coming from.

Answer Source

Simply: My production server was running out of RAM memory. I boosted it a little bit to 1GB and now it works like a charm!

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download