Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/git/git-scm.com.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2017-05-03 09:15:48 +0300
committerJeff King <peff@peff.net>2017-05-03 09:15:48 +0300
commit536c572e498fdc3248c4d659f360cfa00a163078 (patch)
treed753f2fbac6088bbd538dfc03245b67be6455b98 /config
parent2563fa66105d724582dcf77ee402f4672422d8a4 (diff)
point elasticsearch at $BONSAI_URL
I'm not sure why the $SEARCH_INDEX_URL variable is used. It does provide a layer of indirection, and the existing site has both Bonsai and Searchify set up. So maybe it was for switching between them. These days we're just using Bonsai, so let's point it at the variable that is automatically set up by the Heroku add-on.
Diffstat (limited to 'config')
-rw-r--r--config/initializers/elasticsearch.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/config/initializers/elasticsearch.rb b/config/initializers/elasticsearch.rb
index 87745e45..518ae0c6 100644
--- a/config/initializers/elasticsearch.rb
+++ b/config/initializers/elasticsearch.rb
@@ -1,5 +1,5 @@
Tire.configure do
- url (ENV["SEARCH_INDEX_URL"] || "http://0.0.0.0:9200")
+ url (ENV["BONSAI_URL"] || "http://0.0.0.0:9200")
end
ELASTIC_SEARCH_INDEX = "gitscm"