Skip to content

Instantly share code, notes, and snippets.

@dymio
Created August 5, 2014 14:35
Show Gist options
  • Save dymio/52270594b730c8b226ea to your computer and use it in GitHub Desktop.
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
#!/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