#!/bin/sh # Simple deployment script # # Requires access to to github repository, as well as a host defined in # ~/.ssh/config like so: # # Host myhost # User appuser # Hostname hostname # ForwardAgent yes # # On a Mac you might need to run 'ssh-add' at least once beforehand. ssh myhost 'cd ~/app; git fetch; git reset --hard origin/master'