Member-only story
Rails Deployment using Ansible — DevOps Project 04
Github repo here. The ansible playbooks here.
We will be deploying Tattle in this one
Know the project: Tattle is a real time chat application built with rails as a monolith
We will be deploying tattle on Amazon EC2 instance using Ansible controller in another EC2 instance.
For deploying rails using capistrano, we will be following commands from this guide by GoRails:
Let’s begin!
First we will create security groups and key pair for our two instances (control and target) then we will spin up our control instance from which we will command the target instance to deploy tattle.
SG for ansible instance:
SG for tattle instance:
- SSH from MY IP and from tattle-control-sg
- Port 80 from MY IP
