Created
October 10, 2013 11:53
-
-
Save e0ne/6917175 to your computer and use it in GitHub Desktop.
Simple script to run Fuel Fake UI
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
#!/usr/bin/env bash | |
drop_db=0 | |
case "$1" in | |
-d|--drop-db) drop_db=1;; | |
esac | |
if [ $drop_db -eq 1 ]; then | |
sudo -u postgres dropdb nailgun | |
sudo -u postgres createdb nailgun | |
python manage.py syncdb | |
python manage.py loaddefault | |
./manage.py loaddata nailgun/fixtures/sample_environment.json | |
fi | |
python manage.py run -p 8000 --fake-tasks |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment