How to Create an Amazon EC2 Instance for a Rails App Deployment (Ubuntu 20.04 Focal Fossa)

Опубликовано: 21 Октябрь 2024
на канале: BrainTrust Digital
5,882
151

Do you want to deploy your Rails application to your own Amazon EC2 server?

In this AWS + Rails series tutorial I explain How to create an Amazon EC2 for a Rails application. The server we create will use the brand new Ubuntu 20.04 Focal Fossa. First, we create the server in the AWS interface, including your security groups. Then I’ll guide you through all the packages you need to install, like NGINX, Phusion Passenger. In this video we will get the server ready, but we won’t actually our Rails app until the next AWS + Rails tutorial video.

Gist with Commands:
https://gist.github.com/ThomasBush/58...

Timestamps
0:00 Introduction
1:45 Getting started
2:03 Create security group
3:43 Create EC2 instance
3:53 Select AMI
4:18 Select instance type
4:56 Configure instance details
5:11 Add storage
5:18 Add tags
5:58 Select security group
6:25 Launch instance
7:53 Generate passwords
9:20 Surprise from my coworker
10:03 SSH into EC2
10:20 Add server deploy user
11:01 Generate SSH keys
11:47 Install packages
12:44 Install rbenv
13:38 Install ruby
14:00 Install bundler
14:20 Install NGINX and Passenger
15:00 NGINX server config
16:14 Start NGINX
16:26 Create PostgreSQL database
16:51 Closing notes

How to Create Your First Rails App
   • How to Create Your First Rails App  

How to use AWS SES to send email in a Rails App
   • AWS + Rails: How to use AWS SES to se...  

How to Add Devise Users and Admins to a Rails App
   • AWS + Rails: How to Add Devise Users ...  

AWS + Rails Series Playlist
   • AWS + Rails  

My Gear List
http://brain-trust.io/my-gear

My YouTube SEO Software
https://www.tubebuddy.com/braintrust

My Accounting Software
https://shareasale.com/r.cfm?b=960179...

Make sure you subscribe to my channel to keep up to date with new content!

DISCLAIMER: Links in this description include affiliate links. If you purchase a product or service with the links that I provide I may receive a small commission. There is no additional charge to you! Thank you for supporting BrainTrust Digital so I can continue to provide you with free content each week!