Jamis Buck wrote:
> Is anyone here using cap2 with mongrel_cluster, and can give Jeff some
> tips? We aren't using mongrel_cluster ourselves, so I don't know what to
> say.
This is what Webistrano uses:
namespace :webistrano do
namespace :mongrel do
[ :stop, :start, :restart ].each do |t|
desc "#{t.to_s.capitalize} mongrel"
task t, :roles => :app, :except => { :no_release => true } do
invoke_command "mongrel_rails cluster::#{t.to_s} -C
#{mongrel_config} --clean", :via => run_method
end
end
end
end
namespace :deploy do
task :restart, :roles => :app, :except => { :no_release => true } do
webistrano.mongrel.restart
end
task :start, :roles => :app, :except => { :no_release => true } do
webistrano.mongrel.start
end
task :stop, :roles => :app, :except => { :no_release => true } do
webistrano.mongrel.stop
end
end
end
--
Jonathan Weiss
http://blog.innerewut.de
--~--~---------~--~----~------------~-------~--~----~
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/capistrano
-~----------~----~----~----~------~----~------~--~---