LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > External Applications > Ruby/Rails > command line restart of individual rails apps instead of webserver?

Reply
 
Thread Tools Display Modes
  #1  
Old 07-06-2007, 10:40 AM
nathanc nathanc is offline
Senior Member
 
Join Date: Jun 2007
Posts: 55
Default command line restart of individual rails apps instead of webserver?

Is there a way to restart an individual rails application that is configured for a vhost template from the command line?

I will have several different rails applications on one server. When a user commits a change to their rails app that needs a restart, I would like to restart, from the command line, just their configured instance instead of the entire webserver instance, to minimize downtime.

I know that I can do this samething from the interface, but I need to automate this. At the moment I restart the entire webserver, when a change is committed.
Reply With Quote
  #2  
Old 12-08-2007, 07:16 PM
amaltemara amaltemara is offline
Member
 
Join Date: Dec 2007
Posts: 29
Default yes

I would like that feature as well.
Reply With Quote
  #3  
Old 01-16-2008, 10:37 AM
fantasydreaming fantasydreaming is offline
Senior Member
 
Join Date: Sep 2006
Posts: 76
I just tested this, but can't say for sure it reloads the code..

If you kill the parent process (the one with SNs in it's activity column), it kills it's children. Then when a new request comes into the site, it'll start it again.

Perhaps this would work for you? It might be hard to grep out the process ID for the site you wanted to restart only, but still...
Reply With Quote
  #4  
Old 01-16-2008, 10:43 AM
nathanc nathanc is offline
Senior Member
 
Join Date: Jun 2007
Posts: 55
Thats is an interesting solution. I think that would be a decent work around. I would still like to see LS implement a commandline individual site reload.

Thanks fantasydreaming!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 03:45 PM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.