Skip to content

Instantly share code, notes, and snippets.

@victrcodes
victrcodes / gist:c7567b03ccdb660cda10
Created May 22, 2015 10:33
Quick and dirty Play 2.3 deployment to production server script
#!/usr/bin/env bash
#Quick and dirty Play 2.3 deployment to production server script using RSYNC and SSH accessed with a key
#Requires SSH, RSYNC and SBT to be installed locally
#Tested on Ubuntu
LOCAL_FOLDER=/home/foo/projects/myapp #Local folder of your Play application root
SSH_KEY=/home/foo/.ssh/private_keys/server.pem #Local path to your SSH key
REMOTE_FOLDER=/var/web/myapp #Remote folder of your Play application
REMOTE_SCRIPT=${REMOTE_FOLDER}/bin/myapp #Remoter path to Play launch script