I have node.js app which I deploying with Dokku, for the first after deployment app crashed and Docker container closed, so I checked my project on my computer again and found error. How can I debug errors on Dokku? Is there any console?
What you want is to see logs of the container running your node.js app. But as the container is closed you cannot attach
to it to see outputs from stdout and stderr.
You can however see logs of closed containers.
To do so, first run docker ps -a
, this will output even closed containers.
Then use docker logs <container-id>
with the id of the closed container to fetch logs and debug your app.