首页
学习
活动
专区
工具
TVP
发布
社区首页 >问答首页 >Capistrano + Git :生产服务器本地存储库

Capistrano + Git :生产服务器本地存储库
EN

Stack Overflow用户
提问于 2010-02-19 08:08:04
回答 4查看 19.9K关注 0票数 18

我正在尝试为我的应用程序做‘部署:冷’。git代码库位于我的部署服务器本地(即我只有一台服务器处理所有事情,并且我不在github上托管我的代码)。

这是文字记录(出于隐私考虑,将我的应用程序名称替换为"myapp“)

代码语言:javascript
复制
  * executing `deploy:cold'
  * executing `deploy:update'
 ** transaction: start
  * executing `deploy:update_code'
    executing locally: "git ls-remote /home/mrichman/git/myapp.git master"
fatal: '/home/mrichman/git/myapp.git' does not appear to be a git repository
fatal: The remote end hung up unexpectedly
*** [deploy:update_code] rolling back
  * executing "rm -rf /var/www/myapp.com/releases/20100218203108; true"
    servers: ["myapp.com"]
Password:
    [myapp.com] executing command
    command finished
Command git ls-remote /home/mrichman/git/myapp.git master returned status code 32768

这是我的deploy.rb:http://pastie.org/831424

我也试过

代码语言:javascript
复制
set :repository, "deploy@localhost:/home/mrichman/git/myapp.git"

但这给了我

代码语言:javascript
复制
ssh: connect to host localhost port 22: Connection refused

任何想法都是值得感谢的。

EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/2293212

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档