Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
course-discovery
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
course-discovery
Commits
0b583f7c
Commit
0b583f7c
authored
Dec 18, 2015
by
Calen Pennington
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make ELASTICSEARCH behave more like DATABASES for the purposes of interacting with configuration
parent
79733edf
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletions
+7
-1
course_discovery/settings/base.py
+1
-1
course_discovery/settings/production.py
+6
-0
No files found.
course_discovery/settings/base.py
View file @
0b583f7c
...
...
@@ -249,7 +249,7 @@ SWAGGER_SETTINGS = {
}
ELASTICSEARCH
=
{
'host'
:
'
es
'
,
'host'
:
''
,
'index'
:
'course_discovery'
,
'connect_on_startup'
:
True
}
...
...
course_discovery/settings/production.py
View file @
0b583f7c
...
...
@@ -48,5 +48,11 @@ DB_OVERRIDES = dict(
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
():
DATABASES
[
'default'
][
override
]
=
value
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment