mark.sack
mark.sack

Reputation: 131

rails 8.0 upgrade remove redis dependency

We are planning to upgrade our application to Rails 8.0 and take advantage of the new Solid* features that allow us to remove the Redis dependency. I've done some searching and cannot find any upgrade guides that discuss the move away from Redis. The application started out on Rails 7.0 and we've done the upgrades to 7.1 and 7.2 with some simple code changes. All we really needed to do was make some minor code changes to deal with deprecations.

What is the procedure for removing the Redis dependencies and replacing it with Solid*?

Upvotes: 3

Views: 159

Answers (1)

TKAB
TKAB

Reputation: 183

The question is valid, it seems though that the installation guide in the Solid Cable readme on Github contains all necessary information:

https://github.com/rails/solid_cable?tab=readme-ov-file#solid-cable

Most important point:

Solid Cable is configured by default in new Rails 8 applications. But if you're running an earlier version, you can add it manually following these steps:

  1. bundle add solid_cable
  2. bin/rails solid_cable:install

This will configure Solid Cable as the production cable adapter by overwritting config/cable.yml and create db/cable_schema.rb.

Upvotes: 0

Related Questions