Skip to content

Instantly share code, notes, and snippets.

@mboersma
Last active December 27, 2015 04:39
Show Gist options
  • Save mboersma/7268408 to your computer and use it in GitHub Desktop.
Save mboersma/7268408 to your computer and use it in GitHub Desktop.
Sync local Deis code to a remote controller and restart services
#!/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