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.
Files changed (2) hide show
  1. data/lib/cncflora_commons.rb +4 -0
  2. metadata +1 -1
@@ -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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cncflora_commons
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.25
4
+ version: 0.0.26
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: