Skip to content

Instantly share code, notes, and snippets.

@openjck
Last active August 29, 2015 14:02
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save openjck/b69445fa3e34e1780377 to your computer and use it in GitHub Desktop.
Save openjck/b69445fa3e34e1780377 to your computer and use it in GitHub Desktop.
Take common steps to fix the Kuma development environment. Basically the equivalent of resetting Firefox or unplugging a router. Restarts as much as possible without losing data.
#!/bin/bash
# Configuration
KUMA_ROOT=/path/to/kuma
# Script
# https://www.youtube.com/watch?v=ckIMuvumYrg
pushd .
cd $KUMA_ROOT
vagrant halt
find . -name "*.pyc" -exec rm -rf {} \; &&\
git submodule sync --recursive &&\
git submodule update --init --recursive &&\
vagrant up --provision &&\
popd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment