Sitemap

Rails Deployment using Ansible — DevOps Project 04

8 min readJun 17, 2024

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:

Press enter or click to view image in full size

SG for tattle instance:

  • SSH from MY IP and from tattle-control-sg
  • Port 80 from MY IP

--

--

Bhavyansh
Bhavyansh

Written by Bhavyansh

Hey I write about Tech. Join me as I share my tech learnings and insights. 🚀 Building flux8labs.com

No responses yet