Hint If you are using our opscomplete.com hosting we can set all environment variables mentioned below for your deployment on...

tl;dr When a cookie includes an Expires attribute or an HTTP response includes caching headers like Expires or Cache...

makandra dev

Capistrano 3 has a doctor task that will print information about Environment: Ruby, Rubygems and Bundler versions List of Capistrano...

makandra dev

YJIT is Ruby's default just-in-time compiler. It is considered production-ready since Ruby 3.2 (source).

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

The ActiveSupport::BroadcastLogger allows you to log to multiple sinks. You know this behavior from from the rails server command...

I recently stumbled upon the Rails feature composed_of. One of our applications dealt with a lot of addresses and...

Rails' default logger prefixes each log entry with timestamp and tags (like request ID). For multi-line entries, only the...

Reacting on a class getting added can be done with a mutation observer. Example: const items = document.querySelectorAll('.item') const expectedClass...

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

When you mocked method calls in RSpec, they are mocked until the end of a spec, or until you explicitly...

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

Raising errors for required and permitted attributes makes it easier to find errors in your application during development and in...

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

Debugging performance issues in your Rails app can be a tough challenge. To get more detailed insights consider using the...

makandra dev

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

Starting with Rails 7.1 the production logger is set to standard out. For applications running with opscomplete ensure to keep...

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

Today I stumbled across a pretty harmless-looking query in our application which turned out to be pretty harmful and...

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

makandra dev

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

I, [2024-01-21T06:22:17.484221 #2698200] INFO -- : [4cdad7a4-8617-4bc9-84e9-c40364eea2e4] test

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

You can use the config.x configuration in combination with config_for to configure global settings for your Rails 4.2+ application...