LoginSignup
3
1

More than 3 years have passed since last update.

rails AWSのデプロイが反映されない場合

Last updated at Posted at 2020-08-30

AWS デプロイが反映されない場合に行うこと

環境
rails 5.2.4
unicorn
nginx
capistranoで自動デプロイした場合にすぐにAWSに反映されないことがある方向け

解決法

デプロイする前にローカルで
cap production unicorn:stop

この後に、
bundle exec cap production deploy

をターミナルでうちましょう。unicornがストップします。自動デプロイでも同じようにunicornはストップさせているはずですが、すぐに反映されないことも多いです。私の環境ではこれですぐにデプロイが反映されています。EC2のインスタンス再起動をしていたこともありましたが、こちらの方が良いような気がします。

またgit add .
git commit したあとに、git push することもたまに忘れてしまうことがあります。

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