Skip to content

Instantly share code, notes, and snippets.

@ajhyndman
Created June 10, 2016 05:39
Show Gist options
  • Select an option

  • Save ajhyndman/8fbe89447b7ec518547397ec41df90c4 to your computer and use it in GitHub Desktop.

Select an option

Save ajhyndman/8fbe89447b7ec518547397ec41df90c4 to your computer and use it in GitHub Desktop.
master_is_broken() {
pip install -r requirements.txt
pip install -r requirements_dev.txt
./manage.py migrate
./manage.py migrate --database=problems
psql mathspace_default -c "GRANT ALL ON schema public TO mathspace;"
psql mathspace_problems -c "GRANT ALL ON schema public TO mathspace;"
nvm use
rm -r node_modules
npm install
echo "If this doesn't work, A. restart all your tabs, B. you might need a new database snapshot."
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment