#!/usr/bin/env ruby require 'daemons' require 'optparse' NOOSFERO_ROOT = File.expand_path(File.dirname(__FILE__) + '/../../../') Daemons.run_proc('hub') do Dir.chdir NOOSFERO_ROOT require './config/environment' unless ENV['PROXY'].blank? ENV['NO_PROXY'] ||= 'localhost' require 'proxifier/env' end CommunityHubPlugin::Listener.run end