Working on ES integration for Heroku.
parent
731b1b9ebe
commit
d9a7c4f2fe
|
@ -7,7 +7,7 @@ if 'DATABASE_URL' in os.environ:
|
||||||
|
|
||||||
DATABASES = { 'default': dj_database_url.config() }
|
DATABASES = { 'default': dj_database_url.config() }
|
||||||
|
|
||||||
es = urlparse(os.environ.get('SEARCHBOX_URL') or 'http://127.0.0.1:9200/')
|
es = urlparse(os.environ.get('SEARCHBOX_SSL_URL') or 'http://127.0.0.1:9200/')
|
||||||
port = es.port or 80
|
port = es.port or 80
|
||||||
|
|
||||||
HAYSTACK_CONNECTIONS = {
|
HAYSTACK_CONNECTIONS = {
|
||||||
|
|
Loading…
Reference in New Issue