Created
December 7, 2012 05:06
-
-
Save jeremyfelt/4230934 to your computer and use it in GitHub Desktop.
Predeploy Deploys
This file contains 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
fys_predeploy() { | |
rsync -rv --delete --exclude '.git' --exclude '/content/uploads/2011' /srv/www/feedyourskull.com/* ~/staging/feedyourskull.com/ | |
cd ~/staging/feedyourskull.com/ | |
git status | |
} | |
fys_deploy() { | |
sudo rsync -rv --delete --exclude '.git' --exclude 'content/uploads' ~/staging/feedyourskull.com/* /srv/www/feedyourskull.com/ | |
cd /srv/www | |
sudo chown -R www-data:www-data feedyourskull.com/ | |
flushserver | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment