LoginSignup
11
9

More than 3 years have passed since last update.

Githubからherokuへの自動デプロイ

Last updated at Posted at 2019-04-23

Githubからの自動デプロイ

多くの場合はherokuなどの本番環境へ直接デプロイするのではなく
Githubから自動デプロイを行うようです。
この時gitflowに則るとmasterブランチは常にリリース版となるので
masterブランチと本番環境は常に同期している状態となります。
そのためgithubではmasterブランチとは別に
develop, featureブランチなどで作業する、という前提です。

このデプロイの手間を削減できるため非常に便利な設定です。

設定方法

設定は全てherokuのサイトからGUIで可能です。

  • ダッシュボードから対象のアプリを開く
  • メニューの中の「deploy]
  • DeploymentMethodをGithubへ変更
  • App connnected to Githubの項目で対象のレポジトリ、 masterブランチを選択
  • Automatic Deployをenableへ変更
11
9
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
11
9