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

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > General > Command Line Restart of Individual Virtual Host

Reply
 
Thread Tools Display Modes
  #1  
Old 04-28-2009, 04:50 PM
jmackin jmackin is offline
Member
 
Join Date: Apr 2009
Posts: 22
Default Command Line Restart of Individual Virtual Host

In my quest of getting my Rails app working with Git, Capistrano and LiteSpeed 4.0.2 I am trying to find out if it is possible to restart only the affected virtual host rather than the whole server from the command line, e.g. instead of

Code:
namespace :deploy do
  task :restart, :roles => :app do
    sudo "#{lsws_cmd} restart"
  end
end
I'd like to use something like

Code:
namespace :deploy do
  task :restart, :roles => :app do
    sudo "#{lsws_cmd} restart my_rails_app"
  end
end
I love this functionally in LS's web interface and see a great benefit in being able to use it with my updates.

Is this possible?

JM
Reply With Quote
  #2  
Old 04-28-2009, 06:25 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
LiteSpeed can start individual Rails application configured this way.
http://www.litespeedtech.com/support...:rails_hosting

Or, just kill those ruby process belong to one user if Rails start in suEXEC mode.
Reply With Quote
  #3  
Old 04-28-2009, 07:22 PM
jmackin jmackin is offline
Member
 
Join Date: Apr 2009
Posts: 22
Thanks Mistwang... I actually tried the individual config but realized too late that it only works with the enterprise edition.

And, I'm not starting Rails in suEXEC mode. All ruby processes run under one user.

Do you think there's a chance for the .ls_rails_config functionality to make it into the standard edition?
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 11:06 PM.



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