Last active
September 30, 2015 07:45
-
-
Save koraysels/1ebbf6f08f8f72b6e115 to your computer and use it in GitHub Desktop.
deploy script via ssh & rsync with txt to ignore specific files
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
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 |
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
#!/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