Rails not writing to production logs

I followed the tutorial ( to get my rails app up and running with dokku.

When I do: dokku logs APP_NAME, all that I see are three lines corresponding to the server starting, so my logs aren’t being written to properly. How can I debug this? Common reasons my app isn’t writing production logs?


Show comments

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.

You have to redirect logs to Stdout, so edit config/environments/production.rb properly:

logger           =
logger.formatter = config.log_formatter
config.logger    =

Hint: maybe you need the Lograge gem too.

Try doing docker ps to get a list of your containers. Find your container under the container ID column. After that do docker logs <container-id>.

Has anyone found a solution to this problem? I’m having the exact same issue.