🌟
Herokuへのデプロイ方法
ローカル開発環境でgitへpush
"git status" gitのステータスを確認。
"git add ." 全てのファイルをステージング。
"git commit -am "メッセージ" " ステージングされた全てのファイルをメッセージをつけてコミット。
"git push origin devlop" ローカルのdevlopブランチでコミットされたファイルをリモートリポジトリ先(github)にpush。
githubでmasterにマージ
github > developでプルリクエストを作成して、masterにマージ。
ローカル開発環境でHerokuへpush
"git checkout master" 作業ブランチをmasterに変更
"git pull" リモートリポジトリ先(github)とローカル開発環境のmasterのファイルを同じにする。
"git push heroku master" ローカルのmasterブランチのファイルをherokuへpush。
"heroku run rails db:migrate" heroku環境のdbをマイグレーションする。
Discussion