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 3 years have passed since last update.

AWSサーバーにおけるデプロイの方法(AWS EC2、Unicorn、Nginx)

Posted at

今回の記事ではデプロイの概要と反省をしていきます。

AWSを用いたデプロイまでの流れ

EC2の初期設定(IPアドレスの取得)
     ↓
データベースの設定(mariaDB)
     ↓
EC2のRailsを起動(Unicorn)
     ↓
Webサーバーの設定(Nginx)
     ↓
自動デプロイの設定(Capistrano)

大変だったこと

初期設定で生成したインスタンスを再起動すると、起動していたDB、サーバーが停止してしまっています。そのため、IPアドレスをブラウザに貼っても、画面遷移する事ができずエラーになってしまいます。そのため、EC2からCapistranoまでは一蓮托生であるということを忘れないようにする。

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?