Turn off asset logging in your Rails application

If you’re like me, tailing your development log might provide you with some useful information. The thing I like the most is viewing the details of the queries that happen in the background while you are using your application. But one thing that makes it harder to keep a proper view on the data that … Continue reading Turn off asset logging in your Rails application

Migrate from MySQL to PostgreSQL

Like a lot of developers, I’ve been watching the movement of MySQL since it has been acquired by Oracle. Since the acquisition, a lot of MySQL forks have been created. Think of MariaDB and Drizzle. I’ve also been looking at PostgreSQL. Since long, I’ve wanted to start personal project using PostgreSQL. So I decided to migrate … Continue reading Migrate from MySQL to PostgreSQL

Faster Capistrano deployments

“Release early, release often”, a philosophy that emphasizes the importance of early and frequent releases in creating a tight feedback loop. I’ve been trying to push my code to production as often as possible. But I’ve been having a problem with the asset pipeline. From the moment Capistrano hits the deploy:assets:precompile task, it might take … Continue reading Faster Capistrano deployments

Creating Debian packages with checkinstall

Lately I’ve been working on automating my server infrastructure. One of the tasks at hand was to simplify the way I install certain software. For instance, for my web-stack, I compile ruby and nginx manually, so I can compile them using specific parameters. When I started researching this, I got overwhelmed with all different kind … Continue reading Creating Debian packages with checkinstall

Deployments automation with Capistrano

Deployments are a critical phase in any software project. I can still remember the time where I needed to deploy code changes to production using nothing more than FTP to upload all the changed files. Oh boy, the elevated heart rate, logged in on the production server to intervene when something went wrong. From time … Continue reading Deployments automation with Capistrano

Configuration management with Ansible: Playbooks & Execution

In my previous post, I described how you could setup Ansible. At this point, you are able to send commands to your hosts. Although running ad hoc tasks is useful, I won’t be covering that here. If you want to know more about running command line ad hoc tasks check out the detailed examples on … Continue reading Configuration management with Ansible: Playbooks & Execution