LoginSignup
0
0

More than 1 year has passed since last update.

EC2上のデフォルトのブランチ名がmasterであることによるエラーを解消する方法

Posted at

はじめに

・EC2にてアプリケーションを手動から自動デプロイに切り替える際にエラーが起きた。
・GitHubのデフォルトブランチ名は'main'であるが、EC2上では'master'を用いる仕様になっているためエラーが起きる。
※自分用のメモです

対応したこと

ブランチ名が'main'であることをEC2に認識させるため、deproy.rbファイルの一番下に下記のコードを追記した。

config/deproy.rb

set :branch, 'main'

0
0
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
0
0