This tutorial will show you how to deploy a Rails application to AWS.
This tutorial shows how to deploy Rails to AWS manually.
Before you dive in, be forewarned: it’s kind of a monster of a task. There are a large number of steps involved, many of them tricky and error-prone. Be prepared for the full process to involve hours or even days of potentially frustrating work.
The size of the setup process makes it impractical to put everything into one post, so each step is its own post.
- Launch EC2 instance
- Install nginx and Passenger
- Add the Rails application to the nginx server
- Set up secrets
- Create RDS database
Don’t be discouraged if not everything works on the first try. It most likely won’t. My advice if something goes wrong is to just blow everything away and start again from the beginning. I find that that approach is, paradoxically, often the fastest.