0
votes

I'm trying to use Capistrano to deploy my Zend Framework application using a git repository. I'm deploying from a Windows 7 machine to an Ubuntu server. I've created the repository, and whenever I try running cap:deploy, I get the following errors:

** [hostname.domain :: out] fatal: '/home/<username>/web_docs/<appname>' does not appear 
   to be a git repository
** [hostname.domain :: out] fatal: The remote end hung up unexpectedly

I have sanitized copy of my deploy.rb file here. I've got a perfectly good git repository on my local machine, but Capistrano appears to be looking for a copy of the repository on the server before it's even deployed. What am I doing wrong?

1

1 Answers

0
votes

If you want to deploy from a local repository, you'll have to use a strategy like :copy or :rsync. Capistrano tries to clone from the repository from the server side, expecting it to be a remote repository.