CONTINUOUS INTEGRATION AND DEPLOYMENT WITH JENKINS AND RUBY ON RAILS

In this tutorial we’re going to set up a continuous integration infrastructure for a Ruby on Rails application. For this tutorial, I’ll be working from an Ubuntu machine, and we’ll be deploying our code to an Ec2 Ubuntu instance.Requirement:   Github – source code management tool Ruby on Rails (rails 5 at the moment) Any Cloud platform (I’ll be using AWS Ec2)    For this tutorial, we…

Read More

HAS_ONE ASSOCIATION WITH DEVISE USER

Quick scenario for the project: you’re trying to create a rails application with users that have a portfolio (for others, it’ll be profile or account page).  Assumption/Steps:  Your rails application has a home index page and is your root page. {Route.rb => root to: “home#index”} You have generated devise User You have added extra fields to user forms. For my project I…

Read More

DEPLOYING RAILS APP TO EC2 INSTANCE WITH CAPISTRANO USING NGINX AND PUMA (CONTD)

Hello ! This is a continuation of our tutorial on how to deploy rails app to Ec2 with Capistrano. In the previous tutorial we were able to create the application, set up the development environment on Ec2 server (Ubuntu) and we successfully deployed the application, running the process (puma) in the background. For this tutorial we will continue were…

Read More

SSH: COULD NOT RESOLVE HOSTNAME. . . GITHUB ERROR

This tutorial/guide is about the error in the box below. ssh: Could not resolve hostname github.com: Temporary failure… fatal: Could not read from… You may be getting this error because you generated an ssh for your local machine and didn’t add it to your GitHub account or because you added an ssh key to your GitHub account. This may…

Read More

DEPLOYING RAILS APP TO EC2 INSTANCE VIA GITHUB

This project will be done on a Windows machine and deployed to an Ubuntu Server on AWS EC2. We will be making use of a tool called PuTTY to ssh into the instance from our local machine. Let’s get started: CREATE A SAMPLE APP    We will start first by creating a simple rails blog project via command prompt on…

Read More