Hi Alexsander,
Try adding this to your deploy.rb:
default_run_options[:pty] = true
From the source code(you can find more info about this topic "googling"):
# * :pty - if true, a pseudo-tty will be allocated for each
command. The
# default is false. Note that there are benefits and drawbacks
both ways.
# Empirically, it appears that if a pty is allocated, the SSH
server daemon
# will _not_ read user shell start-up scripts (e.g. bashrc,
etc.). However,
# if a pty is _not_ allocated, some commands will refuse to run in
# interactive mode and will not prompt for (e.g.) passwords.
Regards
2012/7/26 Alexsandır <[email protected]>
> Hi all.
>
> I have a problem about deployment to a virtual server.
>
> Normally I get ssh to server and then I type "vserver x enter" and I pass
> the virtual server and use it.
>
> I defined tasks like this;
>
> task :backup, :roles => :web do
> run "vserver *servername* enter; tar -cvf
> #{backupDir}/backup_#{@@dateForTagging}.tar #{deploymentDir}"
> end
>
> But when I try, it doesn't work.Only wait.
>
> I want to deploy to this virtual server with capistrano.Please help..
>
> --
> * 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