This card describes two different setups that help restore data in case of a data corruption incident during a deployment...

makandra dev

Most of our CI pipelines don't use the --retry flag for Cucumber and instead build their own retry via...

Short reference on how to quickly debug the vanilla Rails job adapters. Queue Adapters by Environment Environment Adapter

makandra dev

Enable local logging for Sentry when: Debugging Sentry event capture locally Testing error handling without polluting production metrics Developing background...

In Rails 8 the behavior of the rails db:migrate command has changed for fresh databases (see PR #52830).

Why Rails has multiple schema formats When you run migrations, Rails will write your current database schema into db/schema.rb. This...

Sometime we've seen this error when executing e.g. bundle exec rake asset:precompile: double free or corruption (out)

makandra dev

Usually our code lives on GitLab, therefore our documentation for CI testing is extensive in this environment. If you are...

Here are some hints on best practices to maintain your tasks in larger projects. Rake Tasks vs. Scripts

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

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

We regularly have tasks that need to be performed around a deploy. Be it to notify operations about changed application...

jacopretorius.net

You can use rake --where task to find the source location that defines task: bundle exec rake --where assets:precompile...

Sometimes I ran across a GitHub merge request of a gem where it was not completely obvious in which version...

This card explains how to generate an entity relationship diagram for your Rails application. We also show how to limit...

This are the steps I needed to do to add esbuild to an application that used the vanilla rails asset...

If you have a flaky command you can use the nick-invision/retry to re-try a failing command, optionally...

Accessing other repositories in Gitlab CI is not straight forward, since the access rights of the current pipeline might not...

To run additional code before an existing Rake tasks you can add a dependency like this: task :before_task...

docs.gitlab.com

Use rules to include or exclude jobs in pipelines. Rules are evaluated in order until the first match. When a...

makandra dev

I just ran into this deployment error after switching from the asset pipeline to webpack: 01:05 deploy:assets:precompile...

SSHKit 1.9.0 might fail with the following error, when trying to deploy a Rail application. Upgrading the gem to version...

Whenever requires you to set the application attribute in your Capistrano configuration. Otherwise your cronjobs are created multiple times.

tekin.co.uk

Git diffs show the surrounding contexts for diff hunks. It does so by applying regular expressions to find the beginning...