No production.log file in Rails App on Digital Ocean App Platform

Posted August 27, 2021 288 views
Ruby on RailsDigitalOcean App Platform

There is not production.log platform for our Rails app on the Digital Ocean App Platform. Is there a way to enable and access the production.log file without going through the dashboard console for Rails applications on the App Platform?

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
1 answer

Hi michael1025401,

You can use doctl to fetch the logs for your app. To fetch the log file use the following, replacing <app-id> with your app’s UUID

doctl apps logs <app-id>

If you want to save the log you can pipe it to a file like:

doctl apps logs <app-id> > production.log

And if you want to follow the log as new requests come along you can run

doctl apps logs <app-id> -f


  • Thank you, Moises. This is very helpful for discerning how to access the STDOUT of the Runtime logs via my local console, but Rails typically handles verbose logs for server errors (e.g. 500 errors) in a logs/production.log file. These errors are not typically posted in STDOUT, unless configured to STDOUT. I’m also noticing that the Digital Ocean runtime logs are not persistent and reset with each deployment. Is there a way to enable the logs/production.log for Rails on the App Platform since this is how Rails historically works out of the box?