You can use 'cat', but not for binary data, and it will still be susceptible to the same issues as the put() command. Many people are successfully using scp or rsync via the command-line to push files to the server, though that's tricky when there is a gateway in play.

- Jamis

On Feb 22, 2008, at 2:07 PM, David Masover wrote:

I suppose there is a bad workaround for it:

run "cat > #{filename} <<END
#{data}
END"

Haven't tested this, though, and it's a horrible hack anyway. A better one might be something akin to the S3 stuff people are doing: Put the files via some mechanism that's actually reliable, then run a command on the server to pull them.

That said, 'put' has worked fine for me.

On 2/22/08, Jamis Buck <[EMAIL PROTECTED]> wrote: Uploading using the 'put' helper is pretty hit-and-miss at the moment.
Some people have no problems at all with it. Other's can't even upload
small files. If you're having problems, you can try setting the
following option in your deploy.rb:

   set :synchronous_connect, true

That has helped some people. If that doesn't help you...then I'm
afraid there isn't currently a good workaround for it.

I'm working on a solution, but it'll take me a while longer.


- Jamis


On Feb 22, 2008, at 11:34 AM, willy malvault wrote:

>
>
>
> On 21 fév, 20:46, Jamis Buck <[EMAIL PROTECTED]> wrote:
>> On Feb 21, 2008, at 10:18 AM, David Masover wrote:
>>
>>> On 2/21/08, Valerio Schiavoni <[EMAIL PROTECTED]> wrote:
>>
>>> Also, why does it print the "*establishing..." message twice ?
>>
>>> Just guessing, but it might be trying to establish a connection to
>>> your gateway, through your gateway?
>>
>> Yup. Capistrano doesn't have any logic in it to handle gateway
>> connections specially. If this is causing anyone pain, I'd consider a
>> patch.
>>
>> - Jamis
>>
>> smime.p7s
>> 3KTélécharger
>
> Hi ! So does it mean that we can't upload anything using capistrano
> for know?
>
--~--~---------~--~----~------------~-------~--~----~
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/capistrano
-~----------~----~----~----~------~----~------~--~---


Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to