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!
ExecJS::RuntimeError:
(execjs):1
...
I have no clue whatsoever on where's the error coming from.
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!