I'm trying to upload a jar file to a server, into my home directory :

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}"
end

but if fails with the following stacktrace:
cap upload_app
  * executing `upload_app'
    servers: ["ita.imag.fr"]
  * establishing connection to gateway `ita.imag.fr'
    starting connection to gateway `ita.imag.fr'
    gateway connection established
  * establishing connection to `ita.imag.fr' via gateway
    connected: `ita.imag.fr' (via gateway)
  * uploading target/pubsub-framework-0.0.1-SNAPSHOT-jar-with-
dependencies.jar
*** [ita.imag.fr] uploading failed: No such file
    upload finished
upload of target/pubsub-framework-0.0.1-SNAPSHOT-jar-with-
dependencies.jar failed on ita.imag.fr


Also, why does it print the "*establishing..." message twice ?

thanks for any help,
Valerio
--~--~---------~--~----~------------~-------~--~----~
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