Command Line Restart of Individual Virtual Host

Discussion in 'General' started by jmackin, Apr 29, 2009.

  1. jmackin

    jmackin New Member

    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
  2. mistwang

    mistwang LiteSpeed Staff

  3. jmackin

    jmackin New Member

    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?

Share This Page