How do I force execjs to use Node.js?

Max picture Max · Mar 13, 2012 · Viewed 11.4k times · Source

I have a rails app, and I want to force execjs to user Node.js as the javascript runtime. How do I even check which runtime execjs is using?

Thanks.

Answer

Max picture Max · Feb 14, 2013

I figured out how to set the javascript runtime. In config/boot.rb I put the following line: ENV['EXECJS_RUNTIME'] = 'Node'