- Install sbt
- sbt update (first run only)
- sbt jetty
Run continuous compilation in one window and jetty with javarebel automatic class reloading in another.
- download javarebel
- create an sbt-rebel script:
#!/bin/sh java -XX:+CMSClassUnloadingEnabled -noverify -javaagent:/path/to/jrebel-2.1/jrebel.jar -Xmx512m -jar ~/bin/sbt-launcher.jar "$@
- open two terminal windows
- Window 1: vanilla sbt, then “~prepare-webapp”
- Window 2: sbt-rebel jetty