Help us understand the problem. What is going on with this article?

Heroku buttonはGithubプライベートリポジトリにも対応している

More than 3 years have passed since last update.

Heroku buttonがいつの間にかGithubプライベートリポジトリでも使えるようになっていました。

設定方法はパブリックなリポジトリのボタンと少し違っていて、ボタンのリンクに template={リポジトリへのURL} をつける必要があります。
Markdownならこう書きます。

[![Deploy](https://www.herokucdn.com/deploy/button.png)](https://heroku.com/deploy?template=https://github.com/{Githubのid}/{リポジトリ名})

また、デプロイにはHerokuアカウントとプライベートリポジトリへのアクセス権があるGithubアカウントを連携させておく必要があります。
連携させていない状態でHeroku buttonを使うと、以下のような画面が表示されます。赤丸部分をクリックすると、デプロイ画面に進みます。
heroku_button.jpg

参考: Creating a 'Deploy to Heroku' Button | Heroku Dev Center

Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away