Created
April 8, 2010 08:46
-
-
Save toolmantim/359909 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
#!/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' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment