Question

No production.log file in Rails App on Digital Ocean 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?

Subscribe
Share

Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

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.

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

Best, Moises