mirror of
https://github.com/ansible/awx.git
synced 2026-05-06 08:57:35 -02:30
add missed log and fix dev env
This commit is contained in:
@@ -9,7 +9,7 @@ def log_migration(wrapped):
|
|||||||
as it runs, Django resets this, so we use a decorator
|
as it runs, Django resets this, so we use a decorator
|
||||||
to re-add the handler for each method.
|
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')
|
formatter = logging.Formatter('%(asctime)s - %(name)s - %(levelname)s - %(message)s')
|
||||||
handler.setLevel(logging.DEBUG)
|
handler.setLevel(logging.DEBUG)
|
||||||
handler.setFormatter(formatter)
|
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_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
|
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
|
# Move to the source directory so we can bootstrap
|
||||||
if [ -f "/tower_devel/manage.py" ]; then
|
if [ -f "/tower_devel/manage.py" ]; then
|
||||||
cd /tower_devel
|
cd /tower_devel
|
||||||
|
|||||||
Reference in New Issue
Block a user