The :pty => true option is working for me as well.  I am not sure of any 
additional artifacts as I have other issues with this build right now, but I 
will report later :-).

Thanks for the suggestion Lee.

On Sep 9, 2010, at 9:36 AM, Stewart wrote:

> Lee,
> 
> Well that seems to be working now. The command returns the terminal.
> With "ssh_options[:pty] = true" I can restart the nginx server via
> cap. However in an interesting twist when I restart the nginx server
> in this way i get a 502 bad gateway on my rails applications.  All my
> other sites in php/html ect seem to be working fine except the rails
> applications.
> 
> It would appear that passenger is not getting started back up with
> nginx which seems strange. When I login to the server and perform the
> restart there everything works fine again and passenger boots. It
> would seem that I am in the same boat with a different problem now. I
> am going to start looking in to this now. I suspect it could be
> something to do with permissions but who knows. Will keep everyone
> posted.
> 
> PS: I will post all solutions I find here just for closure
> 
> PPS: I checked out your blog Lee. Did you write a post about Plesk? If
> that is you could not agree more :). Says the person who cant get
> their server working.
> 
> On Sep 9, 4:20 pm, Lee Hambley <[email protected]> wrote:
>> Paul, Stewart, here's something to try:
>> 
>> ssh -t u...@host '/etc/init.d/myserver start'
>> 
>> (replace name as you would, nginx/tomcat) -- the -t is for TTY allocation
>> (more accurately Pseudo TTY)
>> 
>> From the manual:
>> 
>> Force pseudo-tty allocation.  This can be used to execute arbitrary
>> 
>>> screen-based programs on a remote machine, which can be very useful, e.g.
>>> when implementing menu services.  Multiple -t options force tty allocation,
>>> even if ssh has no local tty.
>> 
>> You can emulate this behaviour (if it works out for you) in capistrano by
>> setting `ssh_options[:pty] = true` (viahttp://www.capify.org/index.php/Run)
>> 
>> I can't believe I didn't think of this, someone in #openssh on Freenode just
>> threw me a bone, so if it works out - I'll answer the SO question and reap
>> some points there :)
>> 
>> - HTH, Lee
> 
> -- 
> * You received this message because you are subscribed to the Google Groups 
> "Capistrano" group.
> * To post to this group, send email to [email protected]
> * To unsubscribe from this group, send email to 
> [email protected] For more options, visit this group at 
> http://groups.google.com/group/capistrano?hl=en

-- 
* You received this message because you are subscribed to the Google Groups 
"Capistrano" group.
* To post to this group, send email to [email protected]
* To unsubscribe from this group, send email to 
[email protected] For more options, visit this group at 
http://groups.google.com/group/capistrano?hl=en

Reply via email to