1
0
mirror of https://github.com/ansible/awx.git synced 2024-10-30 05:25:29 +03:00
awx/Makefile
2013-03-14 16:11:14 -04:00

54 lines
1.1 KiB
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`
adduser:
python manage.py createsuperuser
syncdb:
# only run from initial setup
python manage.py syncdb
runserver:
# run for testing the server
python manage.py runserver
celeryd:
# run to start the background celery worker
python manage.py celeryd -l DEBUG -B
# 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 changes --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