LoginSignup
5
5

More than 5 years have passed since last update.

Capistranoでソースリポジトリを変更した時

Posted at

BitbucketからGitHubにリポジトリを移動してからdeployに失敗してアレー?となっていたのでメモ。

  * 2013-06-26 00:48:42 executing `deploy:update_code'
    updating the cached checkout on all servers
    executing locally: "git ls-remote XXXXXXXXX master"
    command finished in 3193ms

...

 ** [SERVERNAME :: out] fatal: The remote end hung up unexpectedly
    command finished in 2495ms
*** [deploy:update_code] rolling back

みたいな感じで失敗しちゃうのですね。もちろん、変更後のリポジトリにもSSH鍵などの設定が適切にされているものとしますが、この場合は、

shared/cached_copy

こいつを.gitごと削除すればOK。 cap deploy:update_code を行った際、前の設定を引きずっちゃうのが問題っぽい。

5
5
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5
5