Skip to content

Instantly share code, notes, and snippets.

@natebeaty
Created April 20, 2018 15:10
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save natebeaty/e775b04aaac1f36430e38a89bcd5d915 to your computer and use it in GitHub Desktop.
Save natebeaty/e775b04aaac1f36430e38a89bcd5d915 to your computer and use it in GitHub Desktop.
deploy script for a grav site
#!/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