This tutorial aims at explaining how to setup a Rails App deployment using Ubuntu 18.04, Capistrano, Nginx and Puma.

Firstly setup the server

Install Nginx, RVM, Ruby and Rails. You can follow this tutorial

Setup SSH keys

This deploy process pulls from a repository to keep code in order. In this particular case, we’re using GitHub. To access GitHub smoothly, we’re going to setup SSH keys. This allows us to deploy securely without having to type our password each time.