Starting with Rails 7.1 the production logger is set to standard out. For applications running with opscomplete ensure to keep...
Sometimes you have a file that is related to a project, while not actually being part of it. You'd...
A Rails script lives in lib/scripts and is run with bin/rails runner lib/scripts/.... They are a simple tool to perform...
87.140.79.42 - - [23/Jan/2024:09:00:46 +0100] "GET /monitoring/pings/ HTTP/1.1" 200 814 "-" "Ruby" 87.140.79.42 - - [23/Jan/2024:09:00:46 +0100] "GET...
I, [2024-01-21T06:22:17.484221 #2698200] INFO -- : [4cdad7a4-8617-4bc9-84e9-c40364eea2e4] test
The linked article suggests an interesting way to speed up tests of Rails + Postgres apps: PostgreSQL allows the creation of...
This Capistrano task runs a command on all servers. bundle exec cap production app:run cmd='zgrep -P "..." RAILS_ROOT/log/production.log...
Getting CSS (and JS) live reloading to work in a esbuild / Rails project is a bit of a hassle, but...
Most of our applications use CarrierWave for file uploads. CarrierWave has an integrated processing mechanism for different file versions with...
By default, Devise sends all emails synchronously with deliver_now. To change that, Devise's readme suggests overwriting the send...
You don't want sensitive user data in your logs. Background Rails per default filters sensitive data like...
Disclaimer This card is a collection of guides and things to have in mind when upgrading to a specific version...
Both knapsack and parallel_tests have the option to split groups by historic execution time. The required logs for this...
For my computer science bachelor's thesis I programmed and evaluated a CLI Test Case Prioritization (TCP) tool for makandra...
Git log offers useful options for filtering. This card provides a short overview. By message Only commits that include a...
Suppose you want to implement a publish/subscribe pattern in your Frontend application to react to data changes and events. First...
When RubyMine reports Rubocop returning "exit code -1", upgrading Rubocop can be the fix: gem install rubocop "The logs" can...
Splitting up commits makes the process of reviewing often easier, since you can create several merge requests or review every...
tl;dr asdf allows you to manage multiple runtime versions with a single CLI tool and is backwards compatible by...
This is a checklist I use to work on issues. For this purpose I extracted several cards related to the...
Sometimes I ran across a GitHub merge request of a gem where it was not completely obvious in which version...
Our CI setup frequently sees this error while running yarn install: yarn install v1.22.19 [1/4] Resolving packages... [2/4] Fetching packages...
In a Jasmine spec you want to spy on a function that is imported by the code under test. This...
You have uncommited changes (you can always check by using git status), which you want to discard.