Last active
December 27, 2015 04:39
-
-
Save mboersma/7268408 to your computer and use it in GitHub Desktop.
Sync local Deis code to a remote controller and restart services
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' | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment