This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |