Categories
Customization Programming Ruby Tutorial

IRB Console with History and Logging

I spend most of my time working with IRB (Interactive Ruby) or Rails console. Over time, I've settled on a configuration that provides essential features like persistent command history, autocompletion, and Rails-specific logging. These improvements make the Ruby REPL much more productive for daily development work.

What is IRB?

IRB (Interactive Ruby) is Ruby's built-in REPL (Read-Eval-Print Loop) – an interactive shell for experimenting with Ruby code. It's invaluable for testing code snippets, debugging, and exploring APIs. When working with Rails, the Rails console is essentially IRB with your application's environment loaded.

Categories
Cloud Deployment Heroku Ruby

Deploying Ruby Apps to Heroku: Git Push to Production

Introduction

Deploying web applications used to be painful. Set up a server, configure Apache, install dependencies, manage databases, worry about scaling. It was complex and time-consuming.

Heroku changes this. It's a cloud platform that runs your Ruby applications with minimal configuration. Deploy with git push. Scale with a slider. Focus on code, not infrastructure.