This is the final chapter of the 4th time. I have deployed my portfolio. The final task is to link the domains. Since there are so many AWS-related procedure articles, here I will describe the procedure very briefly, including a memorandum.
item | Contents |
---|---|
OS.Amazon Linux AMI | release 2018.03 |
Ruby | v2.5.1 |
Ruby On Rails | v5.2.4.3 |
MySQL | v5.6 |
Unicorn | v5.4.1 |
** I think it will take about 65 minutes with the following settings. (30 minutes if you know the setup) ** </ font>
Contract a domain from the same site. I will omit this here.
--Introduce Nginx (web server) using yum package --Set the Nginx config file --Granting Nginx package permissions (/ var / lib / nginx) --Change Unicorn configuration file (set to process via Nginx)
--Create a new host zone --Register the same Elastic IP in a new recordset
--Register a newly assigned NS record in AWS as a name server name --DNS settings (Elaspic IP and domain are linked)
--Set the registered domain name in the same configuration file.
That's it. If you access the specified domain, you can refer to the rails application running Unicorn via NGINX. To be honest, it's easy. I wrote it briefly so as not to write it as difficult as possible. that's all.
Recommended Posts