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

Go Back   LiteSpeed Support Forums > External Applications > Ruby/Rails > Capistrano Recipes (a working restart?)

Reply
 
Thread Tools Display Modes
  #1  
Old 10-16-2007, 07:33 PM
rubyjuice rubyjuice is offline
New Member
 
Join Date: Aug 2007
Posts: 8
Default Capistrano Recipes (a working restart?)

Anyone have a working Capistrano recipe? I'm currently using:

task :restart, :roles => :app do
sudo "#{lsws_cmd} restart"
end

Unfortunately, on my first restart attempt, Capistrano returns an error:

* executing "sudo /opt/lsws/bin/lswsctrl restart"
servers: ["test.local"]
[test.local] executing command
** [out :: test.local]

The last line is unexpected. For a period of about 5 minutes after the first restart attempt, it completes successfully with the final expected line of:

[test.local] executing command

Anyone know what's going on? Or, better yet, do you have a working recipe?

Last edited by rubyjuice; 10-23-2007 at 11:21 PM..
Reply With Quote
  #2  
Old 04-28-2009, 04:42 PM
jmackin jmackin is offline
Member
 
Join Date: Apr 2009
Posts: 22
I had the same problem. I had to wrap the namespace :deploy around my task in order for Capistrano to ommit the use of the Reaper.

Code:
namespace :deploy do
  task :restart, :roles => :app do
    sudo "#{lsws_cmd} restart"
  end
end
Hope that helps.

JM

Last edited by jmackin; 04-28-2009 at 04:51 PM..
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 06:08 AM.



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