Created
February 26, 2012 07:00
-
-
Save l4u/1914609 to your computer and use it in GitHub Desktop.
JRuby nailgun server with rbenv
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
# for other JRuby processes, use nailgun and 1.9 | |
export JRUBY_OPTS="--ng --1.9" | |
# to start a nailgun server | |
export JRUBY_OPTS='--1.9' | |
function rbenvsudo(){ | |
executable=$1 | |
shift 1 | |
sudo $(rbenv which $executable) $* | |
} | |
rbenvsudo jruby --ng-server |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment