I have been trying to use Cap to deploy a PHP site to the media temple
Grid Servers. Should be a really easy recipe. I have the media temple
cap gem installed as well. My deploy:setup was successful, and now I
am trying to do my cold deploy. However I keep running into an SFTP
error similar to the following:

upload via sftp failed on s12345.gridserver.com:
Net::SFTP::StatusException (Net::SFTP::StatusException open ~/domains/
example.com/tmp/20090303030442.tar.gz (2, "no such file"))

My recipe is pretty simple:

require 'mt-capistrano'

# Config
set :site,         "12345"
set :application,  "example.com"
set :webpath,      "example.com"
set :domain,       "s#{site}.gridserver.com"
set :user,         "serverad...@#{webpath}"
set :password,     "xxxxxxxx"

# Other options
default_run_options[:pty] = true
set :use_sudo, false # MediaTemple doesn't allow sudo command

# Repo stuff
set :scm, :git
set :repository, "."
set :deploy_to, "~/domains/#{application}"
set :current_deploy_dir, "#{deploy_to}/current"
set :deploy_via, :copy
set :copy_remote_dir, "#{deploy_to}/tmp"
set :branch, "master"

# Roles
role :web, domain
role :app, domain
role :db,  domain, :primary => true

I know the login works, I can ssh in. I have setup an ssh key and that
works as well. I changed the remote directory to a specific directory
so I could make sure the permissions were set correctly.

Anyone have any ideas as to why the upload is failing? I would
appreciate any help.
--~--~---------~--~----~------------~-------~--~----~
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