1
0
mirror of https://github.com/ansible/awx.git synced 2024-10-31 15:21:13 +03:00
awx/Makefile

54 lines
1.1 KiB
Makefile
Raw Normal View History

2013-03-13 21:09:36 +04:00
clean:
find . -type f -regex ".*\.py[co]$$" -delete
2013-03-13 23:28:30 +04:00
rebase:
git pull --rebase origin master
push:
git push
2013-03-13 23:15:35 +04:00
zero:
# go back to original database state, be careful!
2013-03-13 23:21:06 +04:00
python manage.py migrate main zero
2013-03-13 23:15:35 +04:00
2013-03-01 04:52:14 +04:00
setup:
# use ansible to ansible ansible commander locally
2013-03-13 23:15:35 +04:00
ansible-playbook app_setup/setup.yml --verbose -i "127.0.0.1," -c local -e working_dir=`pwd`
2013-03-01 04:52:14 +04:00
adduser:
python manage.py createsuperuser
2013-03-01 04:52:14 +04:00
syncdb:
2013-03-13 23:15:35 +04:00
# only run from initial setup
2013-03-13 23:21:06 +04:00
python manage.py syncdb
2013-03-01 04:52:14 +04:00
runserver:
2013-03-13 23:15:35 +04:00
# run for testing the server
2013-03-13 23:21:06 +04:00
python manage.py runserver
2013-03-01 04:52:14 +04:00
celeryd:
# run to start the background celery worker
python manage.py celeryd -l DEBUG -B
2013-03-01 04:52:14 +04:00
# already done and should not have to happen again:
#
#south_init:
# python manage.py schemamigration main --initial
2013-03-01 04:52:14 +04:00
dbchange:
2013-03-13 23:15:35 +04:00
# run this each time we make changes to the model
2013-03-14 00:29:51 +04:00
python manage.py schemamigration main changes --auto
2013-03-01 04:52:14 +04:00
migrate:
2013-03-13 23:15:35 +04:00
# run this to apply changes to the model
2013-03-13 23:21:06 +04:00
python manage.py migrate
2013-03-13 23:15:35 +04:00
dbshell:
# access database shell
# asks for password # PYTHON_PATH=./acom python acom/manage.py dbshell
sudo -u postgres psql -d acom
2013-03-01 04:52:14 +04:00
test:
2013-03-13 23:21:06 +04:00
python manage.py test main
2013-03-01 04:52:14 +04:00