Dokku showing errors in console

user3215609

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?

abronan

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.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related