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 -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' | |