mirror of
https://github.com/ansible/awx.git
synced 2026-01-15 20:00:43 -03:30
add missed log and fix dev env
This commit is contained in:
parent
fd098e64dc
commit
811d6dfe3d
@ -9,7 +9,7 @@ def log_migration(wrapped):
|
||||
as it runs, Django resets this, so we use a decorator
|
||||
to re-add the handler for each method.
|
||||
'''
|
||||
handler = logging.FileHandler("/tmp/tower_rbac_migrations.log", mode="a", encoding="UTF-8")
|
||||
handler = logging.FileHandler("/var/log/tower/tower_rbac_migrations.log", mode="a", encoding="UTF-8")
|
||||
formatter = logging.Formatter('%(asctime)s - %(name)s - %(levelname)s - %(message)s')
|
||||
handler.setLevel(logging.DEBUG)
|
||||
handler.setFormatter(formatter)
|
||||
|
||||
@ -10,6 +10,9 @@ ansible -i "127.0.0.1," -c local -v -m wait_for -a "host=redis port=6379" all
|
||||
ansible -i "127.0.0.1," -c local -v -m postgresql_user -U postgres -a "name=awx-dev password=AWXsome1 login_user=postgres login_host=postgres" all
|
||||
ansible -i "127.0.0.1," -c local -v -m postgresql_db -U postgres -a "name=awx-dev owner=awx-dev login_user=postgres login_host=postgres" all
|
||||
|
||||
# For migration log
|
||||
mkdir -p /var/log/tower/
|
||||
|
||||
# Move to the source directory so we can bootstrap
|
||||
if [ -f "/tower_devel/manage.py" ]; then
|
||||
cd /tower_devel
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user