Ruby on Rails 3.2 - Capistrano Error with Passenger & Git "sh: 2: master: not found"



我正在为我的一个项目设置capistrano。(它是带有Git、Capistrano和Passenger的Rails 3应用程序
这几乎是相同的情况,除了我的应用程序目录在git控制下,所以我不得不

git远程rm源

之前

git远程添加原点ssh://h41319@h33.hvosting.ua/~/www/elmor.org.ua

如果我运行cap-deploy,我会得到一个错误,并且部署被回滚。。。错误如下

**事务:启动
*2013-02-13 18:43:36执行`deploy:update_code'在本地执行:"git-ls-remotessh://h41319@h33.hvosting.ua/~/www/elmor.org.ua\n master"sh:2:
master:未找到
*[deploy:update_code]回滚

在服务器上设置应用程序目录时出错,现在可以了:

set:applicationdir,"~/www/#{domain}"

最新更新