Created
February 25, 2015 15:17
-
-
Save thisislawatts/ae150573ef2649ee743f to your computer and use it in GitHub Desktop.
Deploy Lite™
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
.DS_Store | |
.git/ | |
.gitignore | |
deploy/ | |
*.sublime-* | |
plesk-stat/ | |
picture_library/ | |
node_modules/ | |
wp-includes/ | |
wp-admin/ | |
# Configuration | |
wp-config.php |
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
REMOTE_SSH_USER='sshusername' | |
REMOTE_SSH_HOST='ssh.example.com' | |
rsync --exclude-from=./excludes.rsync -avz -e ssh ./wp-content/themes/ $REMOTE_SSH_USER\@$REMOTE_SSH_HOST\:public_html/wp-content/themes/ | |
ssh $REMOTE_SSH_USER@$REMOTE_SSH_HOST "chmod -Rf 755 ./wp-content/themes/"; | |
echo "Deployment complete: $(date)" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Note ln.4 of
production.sh
has a relative path to theexcludes.rsync
and to the theme. So this should be placed at the WordPress root.