Created
August 5, 2014 14:35
-
-
Save dymio/52270594b730c8b226ea to your computer and use it in GitHub Desktop.
The simplest deploy shell script - just run git pull on the remote server by ssh
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 | |
echo "--- Begin deploy process ---" | |
echo "Running remote command 'cd ~/www/project; git pull'" | |
ssh [email protected] 'cd ~/www/project; git pull' | |
echo "--- Deploy complete ---" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment