public
Last active — forked from toolmantim/deploy

  • Download Gist
deploy
Shell
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
#!/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'

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.