How I redirected all the web traffic for my old domain to the new one

I recently decided to change the domain name of my personal website from emmanuelcorrales.com to emcorrales.com because it is shorter and easier to remember. I don’t want visitors of emmanuelcorrales.com to receive a 404 Not Found or any other error so I redirected all the traffic to emcorrales.com. In this article I’ll be sharing the steps I took to accomplish this.

Apache: Setup a virtual host on Ubuntu 18.04 LTS

This guide is about setting up a virtual host on Ubuntu 18.04 LTS with Apache as the web server. We’ll assume that we want to host a simple site where the domain name will be example.com.

Ruby on Rails: Capistrano for easy deployment and configuration to Ubuntu with Nginx and Puma

Capistrano is a tool written in ruby to automate the deployment of multiple versions of an application. In this post I’ll demonstrate how to use Capistrano to deploy and configure a Rails app to an Ubuntu Server with Nginx and Puma.

Speed up MySQL database operations on Ubuntu by using the RAM Disk

I’ve been working on a project that requires a MySQL database. Everytime I pull changes from the repository, I have to run the migrations and seed the database. The seeders contain thousands of rows of data and it takes almost an hour to finish. A colleague of mine noticed this and taught me a nice trick to speed up the database operations and that is to use the RAM disk which I’ll be sharing in this post.

Laravel: Testing models

This past week I’ve been using Laravel at work and has been trying to apply Test Driven Development. My first step was to learn how to test the models which I’ll be demonstrating in this tutorial using Laravel 5.6. We’ll create a new project which has an Article model with attributes title, content and views.