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
I'd like to use something like
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
Code:
namespace :deploy do
task :restart, :roles => :app do
sudo "#{lsws_cmd} restart"
end
end
Code:
namespace :deploy do
task :restart, :roles => :app do
sudo "#{lsws_cmd} restart my_rails_app"
end
end
Is this possible?
JM