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

39 lines
937 B
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:15:35 +04:00
zero:
python acom/manage.py migrate main zero
2013-03-01 04:52:14 +04:00
setup:
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
syncdb:
2013-03-13 23:15:35 +04:00
# only run from initial setup
2013-03-01 04:52:14 +04:00
python acom/manage.py syncdb
runserver:
2013-03-13 23:15:35 +04:00
# run for testing the server
2013-03-01 04:52:14 +04:00
python acom/manage.py runserver
# already done and should not have to happen again:
#
2013-03-13 23:15:35 +04:00
south_init:
PYTHON_PATH=./acom python acom/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-01 04:52:14 +04:00
PYTHON_PATH=./acom python acom/manage.py schemamigration main --auto
migrate:
2013-03-13 23:15:35 +04:00
# run this to apply changes to the model
PYTHON_PATH=./acom python acom/manage.py migrate
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:
PYTHON_PATH=./acom python acom/manage.py test main