Capistrano仍然试图连接到我的旧的回购 [英] Capistrano still trying to connect to my old repo
问题描述
deploy.rb
文件中的存储库设置更改为我的新Github repo。 当我运行 cap deploy
它仍然尝试连接到我在Codaset.com上的旧的repo。
我没有找到任何对我的旧回购的参考,所以不明白为什么这样做。
我尝试过
cap deploy:setup
那可行,但后来我收到相同的错误
cap deploy
您必须删除存储在 PATH_TO_APP / shared / cached的服务器上的共享副本复制
。删除缓存副本
目录并再次运行部署。
缓存副本
文件夹包含您的Git存储库的克隆。当克隆存在时,Capistrano不会再次克隆它,只需运行一个 git fetch
。
如果[-d / var / www / apps / APPLICATION / shared / cached-copy]执行code;然后cd / var / www / apps / APPLICATION / shared / cached-copy& -q origin& git fetch --tags -q origin&&git reset -q --hard HASH&&git clean -q -d -x -f; else git clone -q git @ github .com:REMOTE / var / www / apps / APPLICATION / shared / cached-copy& cd / var / www / apps / APPLICATION / shared / cached-copy& git checkout -q -b deploy HASH; fi
I have changed my repo to Github.com from Cadaset.com and changed the repository setting in my deploy.rb
file to my new Github repo.
When I run cap deploy
it still tries to connect to my old repo on Codaset.com.
I cant find any reference to my old repo so cant see why it is doing this.
I have tried
cap deploy:setup
that works but then I get the same error on
cap deploy
You have to delete the shared copy on your server stored at PATH_TO_APP/shared/cached-copy
. Remove the cached-copy
directory and run the deploy again.
The cached-copy
folder contains a clone of your Git repository. When the clone exists, Capistrano doesn't clone it again and simply runs a git fetch
.
executing "if [ -d /var/www/apps/APPLICATION/shared/cached-copy ]; then cd /var/www/apps/APPLICATION/shared/cached-copy && git fetch -q origin && git fetch --tags -q origin && git reset -q --hard HASH && git clean -q -d -x -f; else git clone -q git@github.com:REMOTE /var/www/apps/APPLICATION/shared/cached-copy && cd /var/www/apps/APPLICATION/shared/cached-copy && git checkout -q -b deploy HASH; fi"
这篇关于Capistrano仍然试图连接到我的旧的回购的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!