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?


Submit an answer

This textbox defaults to using Markdown to format your answer.

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

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

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