On Feb 23, 2008, at 4:05 AM, Valerio Schiavoni wrote:
i still got nothing uploaded, even setting the "set :synchronous_connect, true". What is strange is the error message: *** [ita.imag.fr] uploading failed: No such file
Ah, put() does not accept a source file name, it takes the contents of the file itself. So:
put "~/#{jar}", File.read("target/#{jar}")
- Jamis
where ita.imag.fr is supposed to be the destination of the upload, and not the source. to be clear: i want to upload from my local machine (the one where cap capifile is executed from) to a machine whose role is 'gateway'. The input file is in the target/ subdirectory, and I want ot copy it in my home directory on the 'gateway' machine. Given that, is this:role :gateway, "ita.imag.fr" set :jar, "my.jar" desc "Upload the jar on the frontend machine" task :upload_app, :roles=> :gateway do put "~/","target/#{jar}" endstill correct? --~--~---------~--~----~------------~-------~--~----~ To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/capistrano -~----------~----~----~----~------~----~------~--~---
smime.p7s
Description: S/MIME cryptographic signature
