1
0
mirror of https://github.com/ansible/awx.git synced 2024-10-27 09:25:10 +03:00
awx/Makefile

47 lines
990 B
Makefile

clean:
find . -type f -regex ".*\.py[co]$$" -delete
rebase:
git pull --rebase origin master
push:
git push
zero:
# go back to original database state, be careful!
python manage.py migrate main zero
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`
syncdb:
# only run from initial setup
python manage.py syncdb
runserver:
# run for testing the server
python manage.py runserver
# already done and should not have to happen again:
#
#south_init:
# python manage.py schemamigration main --initial
dbchange:
# run this each time we make changes to the model
python manage.py schemamigration main --auto
migrate:
# run this to apply changes to the model
python manage.py migrate
dbshell:
# access database shell
# asks for password # PYTHON_PATH=./acom python acom/manage.py dbshell
sudo -u postgres psql -d acom
test:
python manage.py test main