【发布时间】:2011-01-18 14:09:49
【问题描述】:
我正在尝试为我的应用程序执行“部署:冷”。 git repo 是本地的 我的部署服务器(即我只有一台服务器来处理所有事情,我 不要在 github 上托管我的代码)。
这是成绩单(出于隐私考虑,将我的应用名称替换为“myapp”)
* 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
我也试过
set :repository, "deploy@localhost:/home/mrichman/git/myapp.git"
但这给了我
ssh: connect to host localhost port 22: Connection refused
感谢任何想法。
【问题讨论】:
标签: ruby-on-rails git deployment capistrano