Sha256: 0463055ae1eba2bc2d24282fb13031973f0a2b2802b3a97a902b46973035d411
Contents?: true
Size: 1.18 KB
Versions: 5
Compression:
Stored size: 1.18 KB
Contents
# For TextMate users, change the language type (at bottom of window, next to line/column counter, to ruby) # # TODO move to event-based config applog(nil, :info, "loading /etc/god/master.conf") require '/usr/local/ec2onrails/lib/god_helper' require '/usr/local/ec2onrails/lib/roles_helper' require '/usr/local/ec2onrails/lib/utils' require "fileutils" include GodHelper include Ec2onrails::RolesHelper APP_ROOT = "/mnt/app/current" @configs = GodHelper::Configs.new God.pid_file_directory = "/var/run/god" applog(nil, :info, "About to load system configs at /etc/god/*.god") God.load "/etc/god/*.god" applog(nil, :info, "About to load application-specific configs at #{APP_ROOT}/config/god/*.god") God.load "#{APP_ROOT}/config/god/*.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") end
Version data entries
5 entries across 5 versions & 3 rubygems