【发布时间】:2017-01-09 09:46:38
【问题描述】:
我有一个 Rails 4 项目,它从 github 开始,然后被移动到一个私有 git 存储库。我可以完美地使用 repo(推送、克隆)。我在代码中的某处搜索了对 github 存储库的引用,但不存在。它一定与 GIT 以及存储库的启动方式有关。..
重要提示:在我删除 github 之前,我能够从我的私人仓库中使用此配置进行部署。
当然我已经更新了 config/deploy.rb
set :repo_url, '/srv/git/project.git'
运行“git remote -v”:
origin git@git.server:/srv/git/project.git (fetch)
origin git@git.server:/srv/git/project.git (push)
capistrano 运行“bundle exec cap production deploy”的日志:
00:00 git:wrapper
01 mkdir -p /tmp
server's password:
✔ 01 server 6.019s
00:07 git:check
01 git ls-remote --heads /srv/git/project.git
01 6b0c9f5ad2d8e768902c5da1509fd99915068295 refs/heads/master
✔ 01 server 0.356s
00:07 deploy:check:directories
01 mkdir -p /home/user/applications/project/shared /home/user/applications/project/releases
✔ 01 user@server 0.335s
00:08 deploy:check:linked_dirs
01 mkdir -p /home/user/applications/project/shared/public/assets
✔ 01 user@server 0.331s
00:09 git:clone
The repository mirror is at /home/user/applications/project/repo
00:10 git:update
01 git remote update --prune
01 Fetching origin
01 remote: Invalid username or password.
01 fatal: Authentication failed for 'https://github.com/user/project.git/'
01 error: Could not fetch origin
不久前从 SVN 迁移到 GIT,对这种行为有点困惑.. 感谢任何帮助!
【问题讨论】:
-
如何获得如此简短且用户友好的 capistrano 日志?
标签: ruby-on-rails git github capistrano