Given there is a user with an attachable avatar: class User < ApplicationRecord has_one_attached :avatar end

When using Rails credentials, you will edit the encrypted credentials for staging or production environments from time to time. To...

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

Why do we migrate? Due to a change in licensing, we cannot provide Elasticsearch versions >= 8.0. Version 7.17.x will...

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

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

makandra dev

If you have a fully functional CI pipeline but no CD, you might find yourself frequently waiting for CI (with...

Every Rails response has a default ETag header. In theory this would enable caching for multiple requests to the same...

If you use a newer SSH key generated with the ED25519 algorithm instead of RSA (see Create a new SSH...

makandra dev

This is a checklist I use to work on issues. For this purpose I extracted several cards related to the...

Das Standardtool für Monitoring auf AWS ist Cloudwatch. Du hast dir in den AWS Kapiteln Cloudwatch sicherlich schon grundsätzlich angesehen...

Du verstehst, warum man Healthchecks u.ä. haben möchte. Du weißt auch, dass solche Checks nicht exklusiv für Kubernetes...

Im Kapitel 502 Eine Applikation als Container mit CI pipelines deployen hast du eine Applikation auf AWS deployed. In diesem...

Du verstehst, was ein Pod ist und warum es Sinn macht, Container auf diese Weise zu gruppieren.

In diesem Kapitel wirst du eine Applikation in ein Containerimage verpacken und dieses via CI/CD bauen. Anschließend baust du die...

Issue: You have an app using jsbundling-rails and esbuild. After deploy, the assets built by esbuild are missing in...

You want to deploy new features but the latest commits are not ready for production? Then use git merge master...

To attach files to your records, you will need a new database column representing the filename of the file...

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.

When deploying a Rails application that is using Webpacker and Capistrano, there are a few configuration tweaks that optimize the...

After performing a live migration of a VM you may encounter issues with the clock of the migrated VM. The...