- Put deploy.shin the root of your (playframework) project
- edit deploy.shand set up the ssh access (REMOTE) and the remote app directory (REMOTE_APP).
- On the server, create an empty directory at $REMOTE_APPand putstart.shandstop.shin it.
- Optionally, edit the http port for convenience in ./start.sh
- run ./deploy.shand enjoy your deployment loop
- It does incremental upload (only upload what have change) with rsync.
- It uses sbt stagewhich compile the application locally on your machine so you only needjavaon your server.
- It kills the server before uploading and restarts it.
- It displays server log in your console at the end of the deploy.sh, you can Ctrl-C and it keep the server up.
- ssh authorized_keys is your friend.
- It uses nohupto keep the application running which is not perfect but works: Of-course there must be better tools, for maintaining play applications as UNIX daemons, this one was just fine for me :)
Now, Fork me if you want & DWTFYW