0
# run with: god -c /path/to/god.god
0
-APPLICATION = <%= application.inspect %>
0
-SERVER = <%= "TODO".inspect %>
0
-RAILS_ENV = <%= rails_env.inspect %>
0
-RAILS_ROOT = <%= current_path.inspect %>
0
- mongrel_servers.times do |i|
0
- ports << mongrel_port + i
0
-MONGREL_ENV = <%= mongrel_environment.inspect %>
0
God::Contacts::Email.message_settings = {
0
- :from => "god
@#{SERVER}"
0
God::Contacts::Email.server_settings = {
0
- :address => 'localhost',
0
+ :address => 'localhost', :port => 25
0
God.contact(:email) do |c|
0
@@ -31,18 +16,17 @@ God.contact(:email) do |c|
0
c.email = 'mvanholstyn@mutuallyhuman.com'
0
-# Watches for Trunk mongrels
0
+[<%= mongrel.ports.join(',') %>].each do |port|
0
- w.name = "#{RAILS_ENV}-mongrel-#{port}"
0
- w.group = "#{RAILS_ENV}-mongrels"
0
+ w.name = "<%= rails_env %>-mongrel-#{port}"
0
+ w.group = "<%= rails_env %>-mongrels"
0
+ w.uid = "<%= mongrel_user %>"
0
+ w.gid = "<%= mongrel_group %>"
0
w.interval = 30.seconds
0
- w.start = "mongrel_rails start -d -e #{MONGREL_ENV} -c #{RAILS_ROOT} -p #{port} -P tmp/pids/mongrel.#{port}.pid -l log/mongrel.#{port}.log"
0
- w.stop = "mongrel_rails stop -P #{RAILS_ROOT}/tmp/pids/mongrel.#{port}.pid"
0
- w.restart = "mongrel_rails restart -P #{RAILS_ROOT}/tmp/pids/mongrel.#{port}.pid"
0
- w.pid_file = File.join(RAILS_ROOT, "tmp/pids/mongrel.#{port}.pid")
0
+ w.start = "mongrel_rails start -d -e <%= mongrel_environment %> -c <%= current_path %> -p #{port} -P tmp/pids/mongrel.#{port}.pid -l log/mongrel.#{port}.log"
0
+ w.stop = "mongrel_rails stop -P <%= current_path %>/tmp/pids/mongrel.#{port}.pid"
0
+ w.restart = "mongrel_rails restart -P <%= current_path %>/tmp/pids/mongrel.#{port}.pid"
0
+ w.pid_file = File.join("<%= current_path %>", "tmp/pids/mongrel.#{port}.pid")
0
w.start_grace = 10.seconds
0
w.restart_grace = 10.seconds
Comments
No one has commented yet.