Commit 3e8305ca184ed8d526b74025f954bbabc7f40700
1 parent
d835cfd1
Exists in
community_hub_submodule
community_hub: set default value for NO_PROXY
Showing
1 changed file
with
4 additions
and
1 deletions
Show diff stats
script/hub_updater
@@ -7,6 +7,9 @@ NOOSFERO_ROOT = File.expand_path(File.dirname(__FILE__) + '/../../../') | @@ -7,6 +7,9 @@ NOOSFERO_ROOT = File.expand_path(File.dirname(__FILE__) + '/../../../') | ||
7 | 7 | ||
8 | Daemons.run_proc('hub') do | 8 | Daemons.run_proc('hub') do |
9 | require NOOSFERO_ROOT + '/config/environment' | 9 | require NOOSFERO_ROOT + '/config/environment' |
10 | - require 'proxifier/env' unless ENV['PROXY'].blank? | 10 | + unless ENV['PROXY'].blank? |
11 | + ENV['NO_PROXY'] ||= 'localhost' | ||
12 | + require 'proxifier/env' | ||
13 | + end | ||
11 | CommunityHubPlugin::Listener.run | 14 | CommunityHubPlugin::Listener.run |
12 | end | 15 | end |