Commit 18d18887f69659da1a45bd062401e22c4c8425ae
1 parent
24eb6750
Exists in
theme-brasil-digital-from-staging
and in
9 other branches
community_hub: set default value for NO_PROXY
Showing
1 changed file
with
4 additions
and
1 deletions
Show diff stats
plugins/community_hub/script/hub_updater
... | ... | @@ -7,6 +7,9 @@ NOOSFERO_ROOT = File.expand_path(File.dirname(__FILE__) + '/../../../') |
7 | 7 | |
8 | 8 | Daemons.run_proc('hub') do |
9 | 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 | 14 | CommunityHubPlugin::Listener.run |
12 | 15 | end | ... | ... |