How to debug in deployment environment in rails application.

I am deploying a rails application on fly.io. The application is showing an error on the web page but not getting details of the error on the flyctl logs (application logs). Please how do I go about getting the error details on the application logs?
Thanks

It should be as simple as:

ENV RAILS_LOG_TO_STDOUT="1"

But undoubtedly that already is in your Dockerfile. You may also need to add log statements to your application: Debugging Rails Applications — Ruby on Rails Guides

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.