LoginSignup
4
3

More than 1 year has passed since last update.

【heroku】デプロイ後の更新を反映させる

Last updated at Posted at 2021-06-03

herokuにて既にデプロイしているアプリを更新した際に、更新を反映させる手順を残しておきます。

1. 変更したファイルをステージングに追加する

git add .  //変更があったすべてのファイルをステージングに追加
git add ファイル名  //指定したファイルをステージングに追加

2. ステージングに追加した変更をコミットする

git commit -m "コメント"

3. コミットした変更をherokuにpushする

git push heroku master

4. migrationファイルにも変更があれば

heroku run php artisan migrate:rollback
heroku run php artisan migrate


【参考サイト】
https://entsukablog.com/laravel-heroku-deploy/#i

4
3
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
4
3