Search⌘ K
AI Features

Testing The New Method Of Gem Management

Explore how to manage and test new gems like Devise using Docker Compose in Rails projects. Understand gem caching benefits, rebuilding images, and handling multiple services for faster development workflows.

Installing a new gem

With our gem cache populated, we added a new gem named Devise in Gemfile:

...
gem 'redis', '~> 4.0'
## Authentication
gem 'devise', '~> 4.4', '>= 4.4.1' ...

Then we installed the gem by running the bundle install command:

$ docker-compose exec web bundle install

You should have observed output similar to the ...