From 12770546a41f846f721d32c296a598315c30b80b Mon Sep 17 00:00:00 2001 From: Azka Nathan Date: Fri, 8 Sep 2023 11:01:37 +0700 Subject: change url apache solr --- indoteknik_custom/models/solr/apache_solr.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/indoteknik_custom/models/solr/apache_solr.py b/indoteknik_custom/models/solr/apache_solr.py index fd4928e7..518280ac 100644 --- a/indoteknik_custom/models/solr/apache_solr.py +++ b/indoteknik_custom/models/solr/apache_solr.py @@ -17,13 +17,13 @@ class ApacheSolr(models.Model): _order = 'id desc' def connect(self, schema): - env = config.get('solr_env', 'production') + env = config.get('solr_env', 'development') url = '' if env == 'development': url = 'http://192.168.23.5:8983/solr/' elif env == 'production': - url = 'http://34.101.189.218:8983/solr/' + url = 'http://10.148.0.5:8983/solr/' return pysolr.Solr(url + schema, always_commit=True, timeout=30) -- cgit v1.2.3