(How I) Deploy Solid Queue with Capistrano
I manage a small number of Rails apps that haven't yet migrated to Kamal for deployment but I wanted to migrate to solid_queue asap to reduce the service burden of running redis. These applications are deployed with Capistrano on Ubuntu LTS servers and the solid_queue is managed by linux's systemd. There isn't much information out ther...
Daily backups and diffs of ONCE Campfire source code
When you purchase Campfire from 37Signals, you will be able to download the source code. This download is a ZIP file and includes no git information. You do need to include your purchase token in the url of the download and if valid the source zip will download. You are permitted of course to push that code to your own private git repo...
Developing with browser guards in Rails 8
As part of the Rails 8 milestones, DHH added a browser guard which he explains thus: “To take full advantage of our #nobuild defaults, we need to ensure that developers have easy control over which versions of the major evergreen browsers they intend to support, and guard their application from being accessed by unsupported versions.” ...
Memory issue after Rails upgrade
I upgraded a bunch of sites to Rails 7.1 recently and the ones deployed on Heroku started to show some massively increased memory usage: How could my app that was using ~128mb of memory be using four times as much with Rails 7.1? Well, its turns out that there was a change made to the default Puma config to make use of all available co...
Debugging production ActionMailbox issues in development
When receiving and processing incoming emails with ActionMailbox, you may come across issues with particular emails that you need to debug. There is a tiny section in the Rails Guides about how to work with ActionMailbox in development. But how do we get an email that caused issues in production and debug it in development with the too...
Well hello there
I’ll write something soon. I promise.
Rails 7: Fix yarn missing on Heroku
When deploying Rails 6 sites to Heroku, the Ruby buildpack would detect if the webpacker gem was installed and install yarn for you automatically. With Rails 7, webpacker is no longer installed by default, so using jsbundling-rails and extras that require yarn to be installed will cause deployment errors on Heroku. The fix is to instal...
Rails 'new' customizations for Rails 7
With Rails 7 and its plethora of new javascript and css configuration options and flags, it can be quite challenging to remember just what these options are when creating a new app. For quite some time Rails has had the ability to read in a config file you have in your home folder named .railsrc This file contains the various flags you...
🔥 Using specific Node JS versions in Github Actions
Sometimes you may want to run your Github Actions using a specific version of NodeJS (eg version 8). This can come in handy if you are dealing with a legacy application and needing to compile a specific version of node-sass for example. The way to do it is to add the following lines into your workflow file. - uses: actions/setup-node@v...
🔥 Installing Ruby 2.6.7 on MacOS with asdf
On MacOS Big Sur - installing Ruby 2.6.7 may fail during the compilation step. Here is the snippet I used to ensure it compiles and installs.
See what javascript caused an attribute to change
I was working on some front-end code today - and when I clicked on a checkbox it mysteriously shrunk. I mean its height was set to 0px when I clicked on it. It was so strange. Some code somewhere was adding a style attribute with height: 0px. Searching my codebase I couldn’t find anywhere where this was happening. To solve these sorts ...
Hi, I'm Rob
I'm a Ruby on Rails web developer. I'm originally from Australia but now live in the United States.
Subscribe and get the latest posts in your email
Daily digest, no spam, unsubscribe any time
Or simply get the latest posts RSS.
https://world.hey.com/robzolkos
Posts: 12
New post: Quarterly
Search using free-text and press