Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Example God configuration

  • Loading branch information...
commit c2ccfe974fdd8daa4d962a1c4adcf50aa73a9afe 1 parent a009aba
Ian Leitch authored
Showing with 18 additions and 0 deletions.
  1. +18 −0 examples/rapns.god
18 examples/rapns.god
View
@@ -0,0 +1,18 @@
+rails_env = 'production'
+rails_root = '/var/www/my_site/current'
+rails_shared = '/var/www/my_site/shared'
+
+God.watch do |w|
+ w.name = 'rapns'
+
+ w.start = "cd #{rails_root} && bundle exec rapns #{rails_env}"
+ w.stop = "kill -INT `cat #{rails_shared}/pids/rapns.pid`"
+
+ w.uid = 'deploy'
+ w.gid = 'deploy'
+
+ w.pid_file = "#{rails_shared}/pids/rapns.pid"
+ w.behavior(:clean_pid_file)
+
+ w.keepalive
+end
Please sign in to comment.
Something went wrong with that request. Please try again.