cncflora_commons 0.0.25 → 0.0.26
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/cncflora_commons.rb +4 -0
- metadata +1 -1
data/lib/cncflora_commons.rb
CHANGED
@@ -155,6 +155,10 @@ def setup!(config)
|
|
155
155
|
config[:strings] = JSON.parse(File.read("src/locales/#{settings.lang}.json", :encoding => "BINARY"))
|
156
156
|
end
|
157
157
|
|
158
|
+
if ENV["DATAHUB_PORT_4001_TCP_ADDR"] then
|
159
|
+
config[:datahub] = "http://#{ENV["DATAHUB_PORT_8080_TCP_ADDR"]}:#{ENV["DATAHUB_PORT_8080_TCP_PORT"]}"
|
160
|
+
end
|
161
|
+
|
158
162
|
if config.has_key? :elasticsearch then
|
159
163
|
config[:elasticsearch] = "#{config[:elasticsearch]}/#{settings.db}"
|
160
164
|
else
|