Commit 0b583f7c by Calen Pennington

Make ELASTICSEARCH behave more like DATABASES for the purposes of interacting with configuration

parent 79733edf
...@@ -249,7 +249,7 @@ SWAGGER_SETTINGS = { ...@@ -249,7 +249,7 @@ SWAGGER_SETTINGS = {
} }
ELASTICSEARCH = { ELASTICSEARCH = {
'host': 'es', 'host': '',
'index': 'course_discovery', 'index': 'course_discovery',
'connect_on_startup': True 'connect_on_startup': True
} }
......
...@@ -48,5 +48,11 @@ DB_OVERRIDES = dict( ...@@ -48,5 +48,11 @@ DB_OVERRIDES = dict(
PORT=environ.get('DB_MIGRATION_PORT', DATABASES['default']['PORT']), PORT=environ.get('DB_MIGRATION_PORT', DATABASES['default']['PORT']),
) )
ES_OVERRIDES = dict(
HOST=environ.get('ES_HOST', ELASTICSEARCH['host']),
INDEX=environ.get('ES_INDEX', ELASTICSEARCH['index']),
)
for override, value in DB_OVERRIDES.items(): for override, value in DB_OVERRIDES.items():
DATABASES['default'][override] = value DATABASES['default'][override] = value
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment