#!/bin/bash

# fail fast
set e

python manage.py build

git stash
git checkout staging

ls -a | egrep -v '(\.\.?|output|\.git)' | xargs rm -r
mv output/* .
rm -r output

git add --all .
git commit -m "auto-commit"
git checkout master


#!/bin/bash

# fail fast
set e

python manage.py build

git stash
git checkout gh-pages

ls -a | egrep -v '(\.\.?|output|\.git)' | xargs rm -r
mv output/* .
rm -r output

git add --all .
git commit -m "auto-commit"
git checkout master


Use gh-pages instead of staging branch.
Use gh-pages instead of staging branch.

The URL generators in flask are simpler if the app is at the root of
the domain.

So lets just put it at the root.
