Skip to content

Instantly share code, notes, and snippets.

@koraysels
Last active September 30, 2015 07:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save koraysels/1ebbf6f08f8f72b6e115 to your computer and use it in GitHub Desktop.
Save koraysels/1ebbf6f08f8f72b6e115 to your computer and use it in GitHub Desktop.
deploy script via ssh & rsync with txt to ignore specific files
web/app/themes/stash/bower
web/app/uploads
.idea
.env
.bowerrc
bower.json
Capfile*
Gemfile*
deploy.sh
deploy-ignore.txt
gulpfile.js
package.json
wp-cli.yml
gulp
node_modules
ruleset.xml
README.md
#!/bin/sh
USER=THE_USER
HOST=THE_HOST_ADDRESS
APP_DIR=/remote-dir-to-deploy-to
echo "***** Uploading kavka to ${HOST} *****"
rsync -e 'ssh' -azvl --delete --stats --progress --exclude-from 'deploy-ignore.txt' * $USER@$HOST:$APP_DIR
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment