0.0
Repository is archived
No commit activity in last 3 years
No release in over 3 years
Manage deployed services through god service monitoring system
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

>= 1.6.3
 Project Readme

Inploy_godlike

Manage deployed services with god

This tiny gem adds support for another server, god, to manage restarts for your application. Features:

  • it runs separate god instances for every application (choose your app names wisely)
  • it loads all configuration files from config/*.god
  • it starts or restarts monitoring process on every deployment
  • ideal for local rvm configurations, where every user uses their own ruby instances

Usage

in config/deploy.rb:

deploy.server = :godlike
deploy.god_group = 'groupname'

where 'groupname' is what you have set in all of your *.god files:

God.watch do |w|
  ...
  w.group = 'groupname'
  ...
end

CLI usage after deployment:

Specify the group name every time you call god, like this:

$ god -p <groupname> [commands and parameters]

Suggested .rvmrc settings:

~/.rvmrc:

unalias god 2>/dev/null

<application dir>/.rvmrc:

alias god='god -p <groupname>'

Copyright © 2010 Balazs Nagy, released under the MIT license