diff --git a/awx/main/migrations/_team_cleanup.py b/awx/main/migrations/_team_cleanup.py index 1a937d1f88..5af2b26492 100644 --- a/awx/main/migrations/_team_cleanup.py +++ b/awx/main/migrations/_team_cleanup.py @@ -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) diff --git a/tools/docker-compose/start_development.sh b/tools/docker-compose/start_development.sh index 16d859a3ce..634dc02749 100755 --- a/tools/docker-compose/start_development.sh +++ b/tools/docker-compose/start_development.sh @@ -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