summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorChris Church <chris@ninemoreminutes.com>2013-05-24 23:55:03 +0200
committerChris Church <chris@ninemoreminutes.com>2013-05-24 23:55:03 +0200
commitc0aaff78500dad97e2a407b5aa163c061993fe0b (patch)
tree6f84a2d3a671adbe2fcc720103ed30d8fe0ed443 /Makefile
parentCompleted requested changes to Host Summary page. (diff)
downloadawx-c0aaff78500dad97e2a407b5aa163c061993fe0b.tar.xz
awx-c0aaff78500dad97e2a407b5aa163c061993fe0b.zip
Cleaned up migrations, updated Makefile migrate target to handle this change.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile18
1 files changed, 11 insertions, 7 deletions
diff --git a/Makefile b/Makefile
index 240d469ab2..b2ea8e12cd 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,5 @@
clean:
- rm -rf build dist *.egg-info
+ rm -rf build *.egg-info
find . -type f -regex ".*\.py[co]$$" -delete
rebase:
@@ -16,18 +16,20 @@ setup:
# use ansible to ansible ansible commander locally
ansible-playbook app_setup/setup.yml --verbose -i "127.0.0.1," -c local -e working_dir=`pwd`
-refresh: clean
- # update/refresh development environment after pulling new code
+develop:
+ # "Install" ansibleworks package in development mode. Creates link to
+ # working copy in site-packages,
python setup.py develop
- python manage.py syncdb
- python manage.py migrate
+
+refresh: clean develop syncdb migrate
+ # update/refresh development environment after pulling new code
adduser:
python manage.py createsuperuser
syncdb:
# only run from initial setup
- python manage.py syncdb
+ python manage.py syncdb --noinput
runserver:
# run for testing the server
@@ -47,8 +49,10 @@ dbchange:
python manage.py schemamigration main changes --auto
migrate: syncdb
+ # This command fixes migrations following the cleanup for the 1.2b1 release.
+ -(python manage.py migrate main 2>&1 | grep 0017_changes) && python manage.py migrate main --delete-ghost-migrations --fake 0001_v12b1_initial
# run this to apply changes to the model
- python manage.py migrate
+ python manage.py migrate --noinput
dbshell:
# access database shell