2011-05-30 68 views
0

我在生產服務器上部署項目時遇到問題。我們使用Capistrano和Passenger。問題在於我們將GitHub上的項目存儲庫移到了另一個帳戶。然後,我在文件deploy.rb中更改了存儲庫地址,然而,在'cap production deploy'期間,在生產服務器進行身份驗證之後,Capistrano正在尋找一箇舊的存儲庫,該存儲庫失敗了。我懷疑這是存儲庫中的一個更改。生產混帳,但我不知道該怎麼做。新的存儲庫,生產問題

servers: ["85.xxx.xxx.xxx"] 
Password: 
[85.xxx.xxx.xx] executing command 
** [85.xxx.xxx.xx:: err] ERROR: repo/repo.git does not exist. Did you enter it correctly? 
** [85.xxx.xxx.xx:: err] fatal: The remote end hung up unexpectedly 
command finished in 4220ms 
*** [deploy: update_code] rolling back 

回答

3

嘗試編輯shared/cached-copy/.git/config和修改所列的混帳回購協議,如果你使用的remote_cache方法,它使當地的混帳回購協議和更新在遠程計算機上,重新指出你的新的git倉庫,你應該很好走,