parent
46d5767a6a
commit
91d49e3028
@ -0,0 +1,11 @@
|
||||
if Rails.env.production?
|
||||
config.cache_store = :redis_store, 'redis://localhost:6379/0/cache', { expires_in: 90.minutes }
|
||||
|
||||
config.after_initialize do
|
||||
Elasticsearch::Client.new hosts: ['192.168.80.168:9200'], retry_on_failure: true
|
||||
end
|
||||
elsif Rails.env.development?
|
||||
config.after_initialize do
|
||||
Elasticsearch::Client.new hosts: ['localhost:9200'], retry_on_failure: true
|
||||
end
|
||||
end
|
Loading…
Reference in new issue