On Monday 02 July 2007 23:20:34 [EMAIL PROTECTED] wrote:
> I am having a similiar problem using cap deploy with copy_strategy =
> export and deploy_via = copy, I did the above and the log file ends
> with
>
> [DEBUG] Fri Jun 15 22:31:58 -0500 2007 -- transport.session: sending
> message >>"<some_random_stuff_here>"<<
> [DEBUG] Fri Jun 15 22:31:58 -0500 2007 -- sftp.operations.write:
> received request id 1
>
> and then it just stops and never does anything else. the file is
> created on the server with size 0.

Same issue here. I have tried any sftp version but no success.
About one month ago everything worked fine. Something must
have changed, but don't know what. 
I have monkey patched the Upload class in my Capfile to use scp, 
surely it is not really elegant, but it is a solution ;-)

<snip>
$configuration = self
module ::Capistrano
  class Upload
    def self.process(sessions, filename, options)
      options[:logger].info 'Monkey patched Upload.process - Uses scp now'
      # don't know how to access configuration here without a global
      user = $configuration.fetch(:user)
      sessions.each do |session|
        server = session.xserver.host
        command = "scp #{filename} [EMAIL PROTECTED]:#{filename}"
        options[:logger].info command
        options[:logger].info `#{command}`
      end
    end
  end
end
</snap>

kind of regards, holger



--~--~---------~--~----~------------~-------~--~----~
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/capistrano
-~----------~----~----~----~------~----~------~--~---

Reply via email to