From 8fbfffbd9a69b7f018a02fbb7fed3249caee3de3 Mon Sep 17 00:00:00 2001 From: Tim Flink Date: Wed, 16 Sep 2015 17:54:44 +0000 Subject: [PATCH] forcing testdays to use localhost for database URI until resultsdb roles are upgraded --- roles/testdays/templates/settings.py.j2 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/roles/testdays/templates/settings.py.j2 b/roles/testdays/templates/settings.py.j2 index 215c34855e..6f3b2354de 100644 --- a/roles/testdays/templates/settings.py.j2 +++ b/roles/testdays/templates/settings.py.j2 @@ -1,6 +1,8 @@ RESULTSDB_URL = 'http://127.0.0.1/{{ resultsdb_endpoint }}/api/v1.0' SECRET_KEY = '{{ testdays_secret_key }}' -SQLALCHEMY_DATABASE_URI = 'postgresql+psycopg2://{{ testdays_db_user }}:{{ testdays_db_password }}@{{ testdays_db_host }}:{{ testdays_db_port }}/{{ testdays_db_name }}' +# forcing this to be localhost for now - a bit hacky but with the current resultsdb roles, it'd need a freeze break request to fix properly +#SQLALCHEMY_DATABASE_URI = 'postgresql+psycopg2://{{ testdays_db_user }}:{{ testdays_db_password }}@{{ testdays_db_host }}:{{ testdays_db_port }}/{{ testdays_db_name }}' +SQLALCHEMY_DATABASE_URI = 'postgresql+psycopg2://{{ testdays_db_user }}:{{ testdays_db_password }}@127.0.0.1:{{ testdays_db_port }}/{{ testdays_db_name }}' SHOW_DB_URI = False PRODUCTION = True FILE_LOGGING = False