1
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

チーム内のGitLabに登録したGemをcapistranoで利用するときにはまったこと

Last updated at Posted at 2013-06-04

当たり前のことかもしれないけど、gitにもRailsにもなれてない自分は以下のエラーで困ったのでメモ。

Git error: command `git clone 'git@hogehoge:huga.git' …

Gemfileは以下でOK

Gemfile
gem 'huga',:git => 'git@hogehoge:huga.git'

capistranoでデプロイするユーザーの公開鍵をGitLabの該当レポジトリに登録しておき、以下のようにデプロイ先の環境でknown_hostsの生成問い合わせをすませておけばデプロイ中に止まらなくなります。

$ ssh -T git@hostname

※コメントでご指摘通り、接続確認だけなので、sshでの確認に修正しました。

1
2
2

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
1
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?