好きこそ 物ノ上手ナレ

What one likes, one will do well.

herokuでデプロイする話

herokuでRailsのプロジェクトをデプロイしようと思って、

ネットをぐるぐるしました。

 

RailsチュートリアルやビルドインサイダーのJenkins記事で

herokuのデプロイがあって、

git push heroku master

 

すると、

fatal: Could not read from remote repository.

 

Please make sure you have the correct access rights

 

and the repository exists

とエラーがでる。

 

結論から言うと、SSHを設定すればなおりました。

 

~./.ssh/id_rsa.pub

の中身をコピペして

herokuのダッシュボードのところから

settings→ADD SSH KEYのところに追加。

 

これだけで動いた!

以上です。