I followed the tutorial (https://www.digitalocean.com/community/articles/how-to-use-the-dokku-one-click-digitalocean-image-to-run-a-ruby-on-rails-app) 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?
Thanks
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!
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.
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:
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 dodocker logs <container-id>
.Has anyone found a solution to this problem? I’m having the exact same issue.