Search code examples
ruby-on-railsruby-on-rails-3execjs

How do I force execjs to use Node.js?


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.


Solution

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