Skip to content

Instantly share code, notes, and snippets.

@bacongobbler
Forked from mboersma/sync_deis.sh
Created March 7, 2014 18:12
Show Gist options
  • Save bacongobbler/9416731 to your computer and use it in GitHub Desktop.
Save bacongobbler/9416731 to your computer and use it in GitHub Desktop.
#!/bin/bash -ex
CONTROLLER=deis.mydomain.com
rsync -Pav --exclude=docs/ --exclude=htmlcov/ --exclude=logs/ --exclude=venv/ --exclude=.git/ \
--exclude='contrib/vagrant/nodes' --exclude='deis/local_settings*' --exclude='*.pyc'\
$HOME/Projects/deis/* deis@$CONTROLLER:/opt/deis/controller
ssh deis@$CONTROLLER 'sudo restart deis-server ; sudo restart deis-worker'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment