Skip to content

Instantly share code, notes, and snippets.

@jonkarna
Created June 29, 2011 20:57
Show Gist options
  • Save jonkarna/1054942 to your computer and use it in GitHub Desktop.
Save jonkarna/1054942 to your computer and use it in GitHub Desktop.
Executing rake tasks against a deployed project on tomcat
cd `dirname $0`/.. && java -cp lib/jruby-core-1.6.2.jar:lib/jruby-stdlib-1.6.2.jar:lib/gems.jar org.jruby.Main -S rake "$@" RAILS_ENV=cron
sh `dirname $0`/tomcat-rake "$@" >> /path/to/my-log.log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment