Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Set elasticsearch index via config

  • Loading branch information...
commit f86385936b36561f2bddb4f77397e76c716b1dff 1 parent 60cd6db
Ryan Daigle authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  config/initializers/elasticsearch.rb
2  config/initializers/elasticsearch.rb
View
@@ -4,7 +4,7 @@
# Optional, but recommended: use a single index per application per environment
app_name = Rails.application.class.parent_name.underscore.dasherize
-ELASTICSEARCH_INDEX_NAME = "#{app_name}-#{Rails.env}"
+ELASTICSEARCH_INDEX_NAME = ENV['ELASTICSEARCH_INDEX_NAME']
module Tire
class Logger
Please sign in to comment.
Something went wrong with that request. Please try again.