If you want someone to be able to access your rails console, but don't want them to be able...

Using Capistrano, we usually have some array configurations in the config/deploy.rb file, like set :linked_files, %w[config/database.yml], so in...

If you want to find out what type of network card is used for a given network interface on a...

If you are using the routing-filter gem in your Rails 7.1 app for managing URL segments for locales or...

What is makandra cards? We are makandra, a team of 60 web developers, DevOps and UI/UX experts from Augsburg, Germany...

makandra dev

There are two ways a logout in SAML can happen: Service Provider (SP) initiated and Identity Provider (IDP) initiated logout...

Developing or debugging SAML functionality can be a hassle, especially when you need to go back and forth with someone...

makandra dev

10.0.0 2024-03-07 Compatible changes console command: You can now globally disable the IRB multiline feature by setting irb...

Any form fields where users enter numbers should be an . Numeric inputs have several benefits over : On mobile or tablet...

A Rails script lives in lib/scripts and is run with bin/rails runner lib/scripts/.... They are a simple tool to perform...

Your development server is usually running on an insecure HTTP connection which is perfectly fine for development.

It happens from time to time that a job in a GitLab pipeline fails. Sometimes, however, the error message is...

Getting an entire test suite green can be a tedious task which involves frequent switches between the CLI that is...

This Capistrano task runs a command on all servers. bundle exec cap production app:run cmd='zgrep -P "..." RAILS_ROOT/log/production.log...

You can use pg_repack to do a VACUUM FULL without holding an exclusive lock during processing. There is still...

makandracards.com

A general overview about why and how we migrate can be found under Migrating from Elasticsearch to Opensearch

In Capistrano 3, your Capfile requires 'capistrano/rails/migrations', which brings two Capistrano tasks: deploy:migrate and deploy:migrating. The former checks...

makandra dev

Getting CSS (and JS) live reloading to work in a esbuild / Rails project is a bit of a hassle, but...

If you ever need to restore exact records from one database to another, Marshal might come in handy. Marshal.dump is...

Creating Nagios Config with puppet Let's have a look at the classic way of managing Nagios configuration with exported...

If you want to automatically delete old container images from your Elastic Container Registry, the solution is a quite simple...

While upgrading CarrierWave from version 0.11.x to 3.x, we encountered some very nasty fails. Below are the basic...

On the Rails console, assigning an object to a variable can lead to this strange error (without stacktrace): irb > recipient...

TLDR Using .includes or .eager_load with 1-n associations is dangerous. Always use .preload instead. Consider the following ActiveRecord...