Simplest way to install Lift on OSX January 11, 2011
- Make sure you have java installed
java -version
- Make sure that you have $HOME/bin in your $PATH
echo $PATH
- Install the `sbt` tool:
mkdir -p $HOME/bin echo "Downloading sbt-launch jar" curl -l http://simple-build-tool.googlecode.com/files/sbt-launch-0.7.4.jar > $HOME/bin/sbt-launch.jar cat <<'EOF' > ~/bin/sbt #!/usr/bin/env bash java -Xmx512M -jar `dirname $0`/sbt-launch.jar "$@" EOF chmod u+x ~/bin/sbt
- Clone @dpp's example repo:
git clone https://github.com/dpp/starting_point.git
- Run the "install every dependency and start the server" command (slow first time, faster subsequent times)
sbt update ~jetty-run
- Verify http://localhost:8080/ responds.
This should work with most linux distros as well.
Note: if it doesn't respond, then you might have hit "enter" while the `sbt update ~jetty-run` command was going... for some reason it will interpret the enter key as a SIGINT, so just re-run the `sbt update ~jetty-run` and reload in your browser.