With capistrano, I am deploying a Rails application from Mac OS X 10.5
to CentOS 5.2
There is a task within our deploy.rb file called `upload`:
put(File.read( file ),"#{shared_path}/#{filename}", :via => :scp)
This fails each and every time with the following exception:
No such file or directory - /srv/ourapp/releases/20100104194410/
config/database.yml
My local copy of config/database.yml is failing to upload properly.
I've verified it's not our internet connection, as this happens on
three different connections and two different systems.
I've also tried to swap out put() for upload() but get the same
result; also, dropping :via => :scp, and/or trying to force :sftp
instead similarly fails.
Relevant info:
$ cap -V
Capistrano v2.5.10
$ ruby -v
ruby 1.8.7 (2008-08-11 patchlevel 72) [i686-darwin9.6.0]
Any ideas?