Skip to content

Instantly share code, notes, and snippets.

@thisislawatts
Created February 25, 2015 15:17
Show Gist options
  • Save thisislawatts/ae150573ef2649ee743f to your computer and use it in GitHub Desktop.
Save thisislawatts/ae150573ef2649ee743f to your computer and use it in GitHub Desktop.
Deploy Lite™
.DS_Store
.git/
.gitignore
deploy/
*.sublime-*
plesk-stat/
picture_library/
node_modules/
wp-includes/
wp-admin/
# Configuration
wp-config.php
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)"
@thisislawatts
Copy link
Author

Note ln.4 of production.sh has a relative path to the excludes.rsync and to the theme. So this should be placed at the WordPress root.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment