I've got code deployed using Capistrano. My directory structure looks
like this: "/var/www/myapp". Every time I deploy, a copy of my code is
put in releases/xxxx where xxxx is a timestamp. There's a symlink in "/
var/www/myapp" called "current".
This is how I'm starting processes with god:
match_host(DRONE) do
god do |w|
w.name = "#{proc_num} proc"
w.env = {'LOG_LEVEL' => 'debug'}
w.start = "#{MYAPP_ROOT}/lib/drone/bin/drone #{network} --
loop"
end
sleep 0.1
end
end
end
I've confirmed that MYAPP_ROOT is "/var/www/myapp/current" by running
god in debug mode and puts'ing the MYAPP_ROOT variable.
What I want to do is, I want to deploy my code to the box I have god
running on, update the "/var/www/myapp/current" symlink to the latest
deployment, and then kill processes with the intent of restarting that
process, but from the new deployment.
I want to do this because I have several time-critical processes
running, but still need to debug them occasionally. If I shut down all
of my processes to debug the whole system, I'm in trouble. Some
processes run fine, others need debugging, so I need to be able to
hotfix the processes that are broken while not touching the processes
that are doing okay.
How can I go about this?
--
You received this message because you are subscribed to the Google Groups
"god.rb" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/god-rb?hl=en.