This is the fourth and final chapter. Deployed my portfolio. The last step is to link the domains. Since there are so many AWS related procedure articles, I will describe the procedure very briefly here, including the memorandum.
|OS.Amazon Linux AMI||release 2018.03|
|Ruby On Rails||v188.8.131.52|
3) Content** I think about 65 minutes with the following settings. (30 minutes if you know the setup) **
- All operations are on AWS, except for [Local Machine].
(1) Get a domain from your name dot com (20 minutes)
Sign a domain from the same site. I will omit about this.
(2) Installation and setting of Nginx (20 minutes)
- Introduce Nginx (web server) using yum package
- Configure Nginx config file
- Grant Nginx package privilege (/var/lib/nginx)
- Modify Unicorn configuration file (configured for processing via Nginx)
(3) Setting AWS-Route53 (10 minutes)
- Create a new hosted zone
- Register the same Elaspic IP in a new record set
(4) Name dot com settings (15 minutes)
- Register the newly assigned NS record in AWS as the name server name
- DNS setting (link ElaspicIP and domain)
(2) Nginx setting 2 (10 minutes)
- Set the registered domain name in the same setting file.
That’s it! When you access the specified domain, you can refer to the rails application that Unicorn is running via NGINX. Honestly easy I’ve just written it so that it’s not as difficult as possible. that’s all.