How to access Rails app logs on Kamal?

less than 1 minute read

With the introduction of aliases in Kamal 2.0 it’s easier to check the Rails app logs.

Kamal setup provides a default aliases for logs. But, if it’s not available, you can add your own aliases to the deploy.yml file.

aliases:
  logs: app logs -f

and then run the following command:

$ kamal logs

INFO Following logs on 37.xx.xxx.xx.
📘 Learn Kamal with a Practical Guide

Check out Kamal Handbook by Josef Strzibny - a concise eBook covering real-world deployment tips.

This is an affiliate link. I may earn a small commission if you buy, at no extra cost to you.

Tags: ,

Updated: