hi guys, Assuming I made some changes to the source code. My production environment runs on passenger and nginx. How do I restart passenger and nginx with minimal downtime? Surely I can''t do a "w" on the terminal because a server will not always be in zero load. Would love to hear some recommendations. PS- I have read on unicorn (http://github.com/blog/517-unicorn) but would love to hear what we can do for passenger. thanks -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
i think i found something. Just send a SIGHUP signal to the nginx process via kill. Seems to work well. Anyone got a better idea? :) thanks On 6 June 2010 14:10, ct9a <anexiole-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> hi guys, > > Assuming I made some changes to the source code. > My production environment runs on passenger and nginx. > > How do I restart passenger and nginx with minimal downtime? > > > Surely I can''t do a "w" on the terminal because a server will not > always be in zero load. > > Would love to hear some recommendations. > > > PS- I have read on unicorn (http://github.com/blog/517-unicorn) but > would love to hear what we can do for passenger. > > thanks-- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
u can use it http://gist.github.com/428270 for manage your nginx Ivan Nastyukhin dieinzige-BUHhN+a2lJ4@public.gmane.org On Jun 7, 2010, at 9:50 AM, Gordon Yeong wrote:> i think i found something. > Just send a SIGHUP signal to the nginx process via kill. > Seems to work well. > Anyone got a better idea? :) > > thanks > > > > On 6 June 2010 14:10, ct9a <anexiole-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > hi guys, > > Assuming I made some changes to the source code. > My production environment runs on passenger and nginx. > > How do I restart passenger and nginx with minimal downtime? > > > Surely I can''t do a "w" on the terminal because a server will not > always be in zero load. > > Would love to hear some recommendations. > > > PS- I have read on unicorn (http://github.com/blog/517-unicorn) but > would love to hear what we can do for passenger. > > thanks > > > -- > 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.-- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Gordon Yeong wrote:> i think i found something. > Just send a SIGHUP signal to the nginx process via kill. > Seems to work well. > Anyone got a better idea? :) > > thanksYep, use: $ kill -HUP <nginx_pid> -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.