Commit f7509f5bad7de9c6a5ef0869094304baed585ec9

Authored by Victor Costa
1 parent bfb37bd0
Exists in master

community_hub: fix hub updater script

Showing 1 changed file with 3 additions and 1 deletions   Show diff stats
script/hub_updater
... ... @@ -4,9 +4,11 @@ require 'daemons'
4 4 require 'optparse'
5 5  
6 6 NOOSFERO_ROOT = File.expand_path(File.dirname(__FILE__) + '/../../../')
7   -require NOOSFERO_ROOT + '/config/environment'
8 7  
9 8 Daemons.run_proc('hub') do
  9 + Dir.chdir NOOSFERO_ROOT
  10 + require './config/environment'
  11 +
10 12 unless ENV['PROXY'].blank?
11 13 ENV['NO_PROXY'] ||= 'localhost'
12 14 require 'proxifier/env'
... ...