Created
April 20, 2018 15:10
-
-
Save natebeaty/e775b04aaac1f36430e38a89bcd5d915 to your computer and use it in GitHub Desktop.
deploy script for a grav site
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/bash | |
USER=username | |
PROJECT=projectname | |
SERVER=siteurl.com | |
rsync --delete -rvzce ssh . ${USER}@${SERVER}:webapps/${PROJECT}/ \ | |
--exclude /.git \ | |
--exclude /assets \ | |
--exclude /tmp \ | |
--exclude /cache \ | |
--exclude /images \ | |
--exclude /backup \ | |
--exclude /logs \ | |
--exclude system.yaml | |
ssh ${USER}@${SERVER} "cd webapps/${PROJECT} && bin/grav clearcache" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment