Sha256: 7126479818d9d141c5cfa19f807002895b11cce0870cdf9bc629f55920c0c532

Contents?: true

Size: 740 Bytes

Versions: 1

Compression:

Stored size: 740 Bytes

Contents

# This is the script that kicks off a single CloudCrowd::Daemon. Because the 
# daemons don't load the entire rails stack, this file functions like a mini
# environment.rb, loading all the common gems that we need.

# Standard Libs
require 'fileutils'
require 'benchmark'
require 'socket'

# Gems
require 'rubygems'
require 'daemons'
require 'yaml'

FileUtils.mkdir('log') unless File.exists?('log')

# Daemon/Worker Dependencies.
require "#{File.dirname(__FILE__)}/../cloud-crowd"
require 'cloud_crowd/asset_store'

Daemons.run("#{CloudCrowd::ROOT}/lib/cloud_crowd/daemon.rb", {
  :app_name   => "cloud_crowd_worker",
  :dir_mode   => :normal,
  :dir        => 'log',
  :multiple   => true,
  :backtrace  => true,
  :log_output => true
})

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
documentcloud-cloud-crowd-0.0.2 lib/cloud_crowd/runner.rb