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

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...

We currently test most of our gems on Travis CI, but want to migrate those tests to Github Actions. This...

It sometimes happen that a database dump, that would want to insert into your development database, does not match the...

makandra dev

If you're using the webdrivers gem and VCR together, depending on your configuration, VCR will yell at you regulary...

Rails middlewares are small code pieces that wrap requests to the application. The first middleware gets passed the request, invokes...

makandra dev

4.0.0 2020-07-30 Compatible changes Improved documentation; README now includes command options. Improvement #90: geordi console, geordi deploy, geordi...

This seems to be obvious, but you can expect Rake tasks to be called in RSpec. it 'deletes all Users...

A recent patch level Ruby update caused troubles to some of us as applications started to complain about incompatible gem...