Capistrano put


I have tried to use “put” in my capistrano task to upload a zip file.
Unfortunately it gets corrupted. This is the code:

:mode => 0444)

Do I have to set a parameter saying that it is a binary file? The
local server is a windows box and the remote ones are linux/debian.


Hey Stefan, could you provide a transcript of the error message that
you’re receiving?


Quick fix… Delete the destination file first.

delete "/home//releases/current/"put(
:mode => 0444)

That fixed it for me.

Regards, Lori

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs