Skip to content

Instantly share code, notes, and snippets.

@l4u
Created February 26, 2012 07:00
Show Gist options
  • Save l4u/1914609 to your computer and use it in GitHub Desktop.
Save l4u/1914609 to your computer and use it in GitHub Desktop.
JRuby nailgun server with rbenv
# 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