Created
July 26, 2018 21:58
-
-
Save dennis-8/23ca5d036ae7e305a1c1467bc717b62f to your computer and use it in GitHub Desktop.
Change ExecJS runtime in RoR
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
How to change ExecJS runtime in RoR |
require 'execjs'
ExecJS.runtime = ExecJS::Runtimes::Node
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In config/boot.rb
To print out the current runtime, after importing ExecJS via
require 'execjs'
just run:
puts ExecJS.runtime.name
And to set the current runtime, just use
ExecJS.runtime = ExecJS::Runtimes::Node