ochronus-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2006-Sep-07 12:32 UTC
RoR fastcgi lapse time
Hi All, I have an account on a FreeBSD server using apache2, mod_fastcgi and of course Rails. As apache starts the fastcgi processes, I have no ways of stopping/restarting them. This seems to pose a problem, for my modifications in controller classes (actually an addition, a new controller is born) does not seem to be reflected in the fastcgi process. That is, my new controller is nonexistent in the process context. When I tell apache (.htaccess) to use the plain old .cgi method, all is fine. Does a rails fastcgi process ever notice that it''s code context has changed? Thanks in advance, Ochronus --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
if you modify a file, you have to restart apache by ssh apachectl -k graceful fcgi loads everything in memory (models, helpers, controllers...) at start-up. anyways, it is a bad practice to develop on a live server, you need to develop at home and when everything is tested and bug-free, upload, sync database (migrations) then restart. -- Heri R. http://sprinj.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 -~----------~----~----~----~------~----~------~--~---
ochronus-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2006-Sep-08 04:55 UTC
Re: RoR fastcgi lapse time
Thank you for your help and advice, I think I''ll continue development locally with webrick, then, when it seems ready, upload and ask the sysadmin to restart apache. With regards, Ochronus Heri R> wrote:> if you modify a file, you have to restart apache by ssh > apachectl -k graceful > fcgi loads everything in memory (models, helpers, controllers...) at > start-up. > > anyways, it is a bad practice to develop on a live server, you need to > develop at home and when everything is tested and bug-free, upload, sync > database (migrations) then restart. > > -- > Heri R. > http://sprinj.com > > ------=_Part_49820_5661544.1157674421701 > Content-Type: text/html; charset=ISO-8859-1 > X-Google-AttachSize: 427 > > if you modify a file, you have to restart apache by ssh<br>apachectl -k graceful<br>fcgi loads everything in memory (models, helpers, controllers...) at start-up.<br><br>anyways, it is a bad practice to develop on a live server, you need to develop at home and when everything is tested and bug-free, upload, sync database (migrations) then restart. > <br><br>-- <br>Heri R.<br><a href="http://sprinj.com">http://sprinj.com</a> > > ------=_Part_49820_5661544.1157674421701----~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---