Ruby on Rails 8 cheatsheet

Ruby on Rails 8: Deployment with Kamal

5 common Ruby on Rails 8 tasks.

Set up servers and deploy

Install Docker on the servers if needed, set up accessories and deploy for the first time.

bin/kamal setup

Deploy a new version

Build and push the image, then roll it out with no downtime.

bin/kamal deploy

Follow the app logs

Stream logs from the app containers.

bin/kamal app logs -f

Open a Rails console on the server

Run a console in the production container. This is an alias that the Rails 8 config/deploy.yml defines.

bin/kamal console

Roll back a release

Switch back to an earlier version, using a version shown by kamal app containers.

bin/kamal rollback VERSION

Was this page helpful?