Sha256: adb5a95f8db3b7f1a0c9e6b3d927bf5027d9809c04595acf707a7b36942b9d83

Contents?: true

Size: 1.04 KB

Versions: 7

Compression:

Stored size: 1.04 KB

Contents

# For TextMate users, change the language type (at bottom of window, next to line/column counter, to ruby)
#
applog(nil, :info, "loading /etc/god/master.conf")

require '/usr/local/ec2onrails/lib/god_helper'
require "fileutils"

include GodHelper

APP_ROOT = "/mnt/app/current"
RAILS_ENV = `/usr/local/ec2onrails/bin/rails_env`.strip


@configs = GodHelper::Configs.new

God.pid_file_directory = "/var/run/god"
God.load "/etc/god/*.god"

applog(nil, :info, "about to load application specific configs at #{APP_ROOT}/config/god/#{RAILS_ENV}/*.god")

God.load "#{APP_ROOT}/config/god/#{RAILS_ENV}/*.god"


# at the end, we want to init the correct services
# need to put it into a thread because god is not finished 
# initalizing at this point, so we need to let it finish
# so we can call init_services, which calls god directly
#
# using a fork copies over the processing space, causing
# god to reload again..and again...and again...
Thread.new do
  sleep(2)
  applog(nil, :info, "initializing services....")
  system("/usr/local/ec2onrails/bin/init_services.rb")
end

Version data entries

7 entries across 7 versions & 5 rubygems

Version Path
ScholarNexus-ec2onrails-0.9.10 server/files/etc/god/master.conf
ScholarNexus-ec2onrails-0.9.11 server/files/etc/god/master.conf
arpitjain11-ec2onrails-0.9.10 server/files/etc/god/master.conf
mdh-ec2onrails-0.9.10 server/files/etc/god/master.conf
rsanheim-ec2onrails-0.9.11.1 server/files/etc/god/master.conf
skippy-ec2onrails-0.9.10 server/files/etc/god/master.conf
skippy-ec2onrails-0.9.11 server/files/etc/god/master.conf