Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Tweak example god config - leave daemonizing to god

  • Loading branch information...
commit 59ef6a62432232539abea37a60f63b15b8d75e55 1 parent cf1c58b
Kali Donovan authored
Showing with 6 additions and 4 deletions.
  1. +6 −4 contrib/apn_sender.god
10 contrib/apn_sender.god
View
@@ -9,11 +9,13 @@ rails_root = "/var/www/#{app_name}/current"
# Resque
God.watch do |w|
- w.dir = "#{rails_root}"
- w.name = "resque"
+ w.dir = "#{rails_root}"
+ w.name = "apn_sender-#{rails_env}"
+ w.group = "resque-#{rails_env}"
w.interval = 60.seconds
- w.start = "#{rails_root}/script/apn_sender.rb --environment=#{rails_env} --verbose start"
- w.stop = "#{rails_root}/script/apn_sender.rb --environment=#{rails_env} --verbose stop"
+ w.env = {"VERBOSE" => "1", "ENVIRONMENT" => rails_env}
+ w.start = "bundle exec rake apn:sender"
+ w.log = "#{rails_root}/log/apn_sender.log"
# restart if memory gets too high
w.transition(:up, :restart) do |on|
Please sign in to comment.
Something went wrong with that request. Please try again.