I have an RoR app happily deployed on Dreamhost with Capistrano. Sometimes when I do an update and cap deploy the changes are available as soon as I log in, others take a few minutes, some take overnight. I can see the dispatch.fcgi being restarted at the end of the deployment. Does anyone have any insight? Thanks in advance. --~--~---------~--~----~------------~-------~--~----~ 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?hl=en -~----------~----~----~----~------~----~------~--~---
On 11/6/06, Hugh <hugh-EcXoqBC4F/kd5Ot1ntKM6ZqQE7yCjDx5@public.gmane.org> wrote:> > I have an RoR app happily deployed on Dreamhost with Capistrano. > Sometimes when I do an update and cap deploy the changes are available > as soon as I log in, others take a few minutes, some take overnight. I > can see the dispatch.fcgi being restarted at the end of the deployment. > Does anyone have any insight? Thanks in advance.Are you using any caching? If so, are the caches cleaned when you deploy? -ryan --~--~---------~--~----~------------~-------~--~----~ 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?hl=en -~----------~----~----~----~------~----~------~--~---
I have the same issue as the OP. No caching or any other voodoo being intentionally done on my part. I''ve always just assumed that DH has a cron job they run once an hour or so that flushes something out (not sure what), and that the variability in how long it takes is a fumction of how closely your deployment lines up with the timing of said cron job. Capistrano takes the "this site down for maintenance" page down when it''s done, so I just start the deployment before I go to sleep. - f On 11/7/06, Ryan King <ryansking-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > On 11/6/06, Hugh <hugh-EcXoqBC4F/kd5Ot1ntKM6ZqQE7yCjDx5@public.gmane.org> wrote: > > > > I have an RoR app happily deployed on Dreamhost with Capistrano. > > Sometimes when I do an update and cap deploy the changes are available > > as soon as I log in, others take a few minutes, some take overnight. I > > can see the dispatch.fcgi being restarted at the end of the deployment. > > Does anyone have any insight? Thanks in advance. > > Are you using any caching? If so, are the caches cleaned when you deploy? > > -ryan > > > >--~--~---------~--~----~------------~-------~--~----~ 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?hl=en -~----------~----~----~----~------~----~------~--~---
No caching or anything fancy running. Is there a specific task I could add to deploy.rb to clean out caches just in case? Thanks, Hugh On Nov 7, 2:04 pm, "Ryan King" <ryansk...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> On 11/6/06, Hugh <h...-EcXoqBC4F/kd5Ot1ntKM6ZqQE7yCjDx5@public.gmane.org> wrote: > > > > > I have an RoR app happily deployed on Dreamhost withCapistrano. > > Sometimes when I do an update and cap deploy the changes are available > > as soon as I log in, others take a few minutes, some take overnight. I > > can see the dispatch.fcgi being restarted at the end of the deployment. > > Does anyone have any insight? Thanks in advance.Are you using any caching? If so, are the caches cleaned when you deploy? > > -ryan--~--~---------~--~----~------------~-------~--~----~ 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?hl=en -~----------~----~----~----~------~----~------~--~---
Hugh wrote:> No caching or anything fancy running. Is there a specific task I could > add to deploy.rb to clean out caches just in case?It sounds to me as though your FCGI processes aren''t actually being restarted. You might want to log in via ssh and kill them manually after the deploy. That will force a reload of your application when they''re started up again. --Al Evans -- 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?hl=en -~----------~----~----~----~------~----~------~--~---