Multi-Tenant Active Storage Done Right
The Starting Point The Doctors app — is a multi-tenant Rails 8.1 application. Each clinic gets its own subdomain: demo.doctors.com, drasmith.doctors.com, and so on. File storage goes to Cloudflare...
The Starting Point The Doctors app — is a multi-tenant Rails 8.1 application. Each clinic gets its own subdomain: demo.doctors.com, drasmith.doctors.com, and so on. File storage goes to Cloudflare...
The Timeline I started the Doctors app — the clinical assistance system I’ve been writing about recently — in October 2018 on Rails 5.2.1 with Ruby 2.5.1. Today it runs Rails 8.1 on Ruby 3.4.8. Th...
Last weekend I migrated my Doctors App from Heroku to Railway. It’s a multi-tenant Rails app where each hospital gets its own subdomain — one.doctors.com, two.doctors.com, and so on. Five hospita...
The Setup I’m building a multitenant order management system for cafes and restaurants. Orders come in, the kitchen sees a live queue, waiters track item status — all updating in real time across ...
Why even consider R2? There are plenty of good reasons to use AWS S3 in a Rails application, and for most teams it works perfectly well. However, one concern that comes up frequently is cost over...
Install MySQL on Linux MySQL is one of the most popular open-source relational database management systems. In this guide, we’ll walk you through the steps to install MySQL on Linux. Prerequisit...
Note: Dropping a table will remove all the data from it. I recently had to remove a table from a Rails application. Here are the ways to do it. Using a Migration Why this option? It’s a sta...
Mastering Git Bisect: Finding Bugs with Precision In the world of software development, bugs are a common adversary. They can be elusive, popping up when you least expect them and wreaking havoc i...
Git is a powerful version control system that allows developers to manage their source code effectively. One of the features of Git is the ability to create branches, which allow developers to work...
Hey folks, I just wanted to say: Happy New Year 2023 🥳
To be honest, following the sentry documentation was pretty straightforward. Change Gems # Old gem "sentry-raven" # New gem "sentry-ruby" gem "sentry-rails" Change Initialization # Old Raven...
Recently, I installed Ubuntu 22.04 to stay on the latest version. I installed rvm.io without issues, then proceeded to install Ruby as usual: rvm install 2.6.9 To my surprise, I encountered the...
Do you want to use a fancy terminal? Install zsh and oh-my-zsh. Install zsh sudo apt install zsh Install Oh-My-Zsh Visit https://ohmyz.sh, copy, and execute the following command: sh -c "$(cu...
Prism is a lightweight, extensible syntax highlighter, built with modern web standards in mind. It’s used in millions of websites, including some of those you visit daily. - prismjs documentation ...
I’m working on a new PC and wanted to dockerize my Bridgetownrb blog to avoid cluttering my system. I searched how to dockerize bridgetownrb and found this easy-to-follow post (thank you, Konnor),...