Below you will find pages that utilize the taxonomy term “Ruby on Rails”
Validating HTTP(S) URLs in Ruby on Rails
Adding TypeScript to your Svelte components in Rails 6
Moving from Capybara to Cypress
Deploying Ruby on Rails apps to Kubernetes from Gitlab CI
Add jemalloc to your Ruby Docker images, now!
The topic of this post is neither new nor original, so I’m going to keep things short. People have been using jemalloc with MRI Ruby for years and praising it’s benefits all the while. The TL;DR here is: for Rails apps, using jemalloc will reduce memory consumption and might increase performance a little.
Why?
To illustrate my own experience, here’s a Grafana graph showing the effect of switching to jemalloc on a production server running a few instances of a Rails application:
Disable JavaScript source maps in production Rails applications
Ruby on Rails 6 allows us to leverage the excellent Webpack bundler to manage JavaScript and CSS components in a way that’s more native to those technologies than the old asset pipeline: no more gems to wrap JavaScript libraries and no more libv8 gem issues.
Another advantage Webpack brings is the excellent source maps. I was surprised to see the source code of my Svelte components, complete with comments available from the Firefox development tools: