Skip to content

Instantly share code, notes, and snippets.

View bacongobbler's full-sized avatar

Matthew Fisher bacongobbler

View GitHub Profile
#!/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'