That should do it :-) I appreciate your support Jamis; the more I dig
into capistrano, the more I am leveraging its power. Many thanks for
this great contribution.
-Chris
On Aug 19, 4:58 pm, Jamis Buck <[EMAIL PROTECTED]> wrote:
> To exclude servers from deploy, do:
>
> role :daemon, "server1", "server2", ..., :no_release => true
>
> - Jamis
>
> On Aug 19, 2008, at 5:34 PM, chris johnson wrote:
>
>
>
> > Hi all.
>
> > I have a custom role (in my rails deploy.rb file) like such:
> > role :daemon, "a.daemons.host.com", "b.daemons.host.com"
>
> > Then I have this code:
> > namespace :deploy do
> > namespace :daemons do
> > [:stop, :start, :restart].each do |t|
> > desc "#{t.to_s.capitalize} daemons using monit"
> > task t, :roles => :daemon do
> > begin
> > sudo "/usr/local/bin/monit -c /etc/monit/monitrc -g daemons
> > #{t.to_s} all"
> > rescue
> > puts "WARNING: monit exception caught: #{$!}"
> > end
> > end
> > end
> > end
> > end
>
> > The problem I've encountered is that when I "cap deploy", those
> > servers in the :daemon role are included in the normal deployment
> > process and are being treated like the servers in the :app role. Is
> > this normal behavior? Need to dig a little deeper, but this strikes
> > me as odd.
>
> > Thanks,
> > Chris
>
> > >
>
>
> smime.p7s
> 3KViewDownload
--~--~---------~--~----~------------~-------~--~----~
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/capistrano
-~----------~----~----~----~------~----~------~--~---