0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

自動デプロイ

Posted at

自動デプロイ

ローカルのターミナルで、以下のコマンドを実行し自動でデプロイする。

ターミナル(ローカル)

# アプリケーションのディレクトリで
% bundle exec cap production deploy

EC2インスタンスの再起動後は、必ず「データベース」「Nginx」の再起動も行いましょう。

ターミナル(EC2内で実行)

[ec2-user@ip-172-31-25-189 ~]$ sudo systemctl restart mariadb 
[ec2-user@ip-172-31-25-189 ~]$ sudo systemctl restart nginx
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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?