Here''s what I have in my deploy.rb: desc "Restart the web server" task :restart, :roles => :app do run "cd #{current_path}; mongrel_rails cluster::stop -C #{current_path}/config/mongrel_cluster.yml; cd -" run "cd #{current_path}; mongrel_rails cluster::start -C #{current_path}/config/mongrel_cluster.yml; cd -" end I''ve tried various other lines, but Mongrel and/or cluster couldn''t find configs, or logs. And it also seems mongrel_cluster expects to find configs in /etc/... even if the mongrel_config var is set. Is there a way to clean up these command lines? Thanks, Joe -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
Oh, I also tried using just mongrel_rails cluster::restart, but files seemed to keep getting served out of the PREVIOUSLY current folder (the one in which Mongrel was initially started). Joe -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
Francois Beausoleil
2006-Aug-27 00:57 UTC
Re: Capistrano Recipes for (re)starting Mongrel (cluster)?
Hi ! 2006/8/26, Joe Ruby <rails-mailing-list@andreas-s.net>:> Oh, I also tried using just mongrel_rails cluster::restart, but files > seemed to keep getting served out of the PREVIOUSLY current folder (the > one in which Mongrel was initially started).I can't remember where I saw that, but Mongrel finds the real directory from which it is started, and attaches there. What you have to do is use the -c switch when you configure your cluster: mongrel_rails cluster::configure -c /var/www/mysite.com/current <other config options here> When the other cluster tasks read the config file, the first thing Mongrel will do is CD to the directory in question. So, the symlink will be refreshed. Hope that helps ! -- François Beausoleil http://blog.teksol.info/ --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk@googlegroups.com To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---