Sam Kong
2006-Jul-05 15:44 UTC
[Rails] How do I reset rails in production mode on DreamHost?
Hello! I am testing rails on DreamHost. I believe it''s running on apache. In development mode, it ran very slowly. So I changed it into production mode and switched to fcgi. It''s very fast now. But the problem is that if I add actions to a controller, it''s not applied. I know that in production mode, I need to restart web server. But I don''t control the web server. How can I reset rails? Thanks in advance. Sam -- Posted via ruby-forum.com.
Brian Hogan
2006-Jul-05 16:00 UTC
[Rails] How do I reset rails in production mode on DreamHost?
In your shell for Dreamhost, issue this command killall -USR2 dispatch.fcgi That usually works for me. If it doesn''t, you''ll need to find all your dispatchers ps -ef | grep dispatch.fcgi and kill each one by process id kill -9 (process id) On 7/5/06, Sam Kong <sam.s.kong@gmail.com> wrote:> > Hello! > > I am testing rails on DreamHost. > I believe it''s running on apache. > In development mode, it ran very slowly. > So I changed it into production mode and switched to fcgi. > It''s very fast now. > But the problem is that if I add actions to a controller, it''s not > applied. > I know that in production mode, I need to restart web server. > But I don''t control the web server. > How can I reset rails? > > Thanks in advance. > > Sam > > -- > Posted via ruby-forum.com. > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > lists.rubyonrails.org/mailman/listinfo/rails >-------------- next part -------------- An HTML attachment was scrubbed... URL: wrath.rubyonrails.org/pipermail/rails/attachments/20060705/03ff4808/attachment.html
Sam Kong
2006-Jul-05 16:59 UTC
[Rails] Re: How do I reset rails in production mode on DreamHost?
Brian Hogan wrote:> In your shell for Dreamhost, issue this command > > killall -USR2 dispatch.fcgi > > That usually works for me. If it doesn''t, you''ll need to find all your > dispatchers > > ps -ef | grep dispatch.fcgi > > and kill each one by process id > > kill -9 (process id)Thanks, Brian. The second method works. I''m not sure about the first one yet. Sam -- Posted via ruby-forum.com.
Al Evans
2006-Jul-05 20:55 UTC
[Rails] Re: How do I reset rails in production mode on DreamHost?
Sam Kong wrote:> Brian Hogan wrote: >> In your shell for Dreamhost, issue this command >> >> kill -9 (process id) > > Thanks, Brian. > The second method works. > I''m not sure about the first one yet. > > SamYou might want to get a copy of my fcgi_watch script: alevans.com/dl/fcgi_watch-0.3.1.tgz I wrote it specifically to handle some issues with FCGI processes on Dreamhost. It will come in especially handy when you deploy your second Rails app:-) --Al Evans -- Posted via ruby-forum.com.
Sam Kong
2006-Jul-05 23:27 UTC
[Rails] Re: How do I reset rails in production mode on DreamHost?
Al Evans wrote:> You might want to get a copy of my fcgi_watch script: > > alevans.com/dl/fcgi_watch-0.3.1.tgz > > I wrote it specifically to handle some issues with FCGI processes on > Dreamhost. It will come in especially handy when you deploy your second > Rails app:-) > > --Al EvansOh, thank you very much. I''ll definately check it out. Thanks again. Sam -- Posted via ruby-forum.com.
Brian Hogan
2006-Jul-06 03:43 UTC
[Rails] Re: How do I reset rails in production mode on DreamHost?
Al: Love that script but I always forget where it is :) Thanks! On 7/5/06, Sam Kong <sam.s.kong@gmail.com> wrote:> > Al Evans wrote: > > > You might want to get a copy of my fcgi_watch script: > > > > alevans.com/dl/fcgi_watch-0.3.1.tgz > > > > I wrote it specifically to handle some issues with FCGI processes on > > Dreamhost. It will come in especially handy when you deploy your second > > Rails app:-) > > > > --Al Evans > > Oh, thank you very much. > I''ll definately check it out. > > Thanks again. > > Sam > > -- > Posted via ruby-forum.com. > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > lists.rubyonrails.org/mailman/listinfo/rails >-------------- next part -------------- An HTML attachment was scrubbed... URL: wrath.rubyonrails.org/pipermail/rails/attachments/20060706/f2c608e7/attachment.html