Skip to content

Instantly share code, notes, and snippets.

@jbettcher
Created November 9, 2010 05:39
Show Gist options
  • Save jbettcher/668761 to your computer and use it in GitHub Desktop.
Save jbettcher/668761 to your computer and use it in GitHub Desktop.
Bash environment file for running a JRuby console from a deployed WAR
export APP_HOME=/usr/local/glassfishv3/glassfish/domains/test-app/applications/test-app/WEB-INF
export GEM_HOME=$APP_HOME/classpath:/META-INF/jruby.home/
export GEM_PATH=$APP_HOME/gems/
export APP_RUNNER="java -cp $APP_HOME/lib/jruby-core-1.5.3.jar:$APP_HOME/lib/jruby-stdlib-1.5.3.jar:$APP_HOME/lib/jffi-i386-SunOS.jar org.jruby.Main -r$APP_HOME/../META-INF/init"
alias test-app="$APP_RUNNER"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment