Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
让 JRuby 在 2.0 模式下运行的最佳方法是什么?
For a specific script, you can use the --2.0 option:
--2.0
jruby --2.0 -S rails s
For setting 2.0 as the default value, set JRUBY_OPTS:
JRUBY_OPTS
export JRUBY_OPTS=--2.0
You can also set the value in ~/.jrubyrc:
~/.jrubyrc
compat.version=2.0