Sunday 10 October 2010

Using JRebel with sbt

At the time of writing, JRebel are offering a free year's license for Scala development see http://sales.zeroturnaround.com/, this is how to install it:

1) Download and install JRebel from http://www.zeroturnaround.com/jrebel/current/

2) Edit the sbt command
java -Xmx512M -noverify -javaagent:/usr/bin/jrebel/jrebel.jar -jar `dirname $0`/sbt-launch.jar "$@"

3) go to your projects root directory and run:
sbt
sbt> update
sbt> jetty-run
sbt> ~ prepare-webapp