Trouble using Capistrano with a local git repository

霸气de小男生 提交于 2019-12-25 18:41:35

问题


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:


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.



来源:https://stackoverflow.com/questions/16870967/trouble-using-capistrano-with-a-local-git-repository

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!