How to View Production Logs in Phoenix Web Applica

2019-03-18 11:00发布

问题:

After successfully deploying our app to a Virtual Machine using Edeliver & Distillery using these steps: https://github.com/dwyl/learn-phoenix-framework/blob/master/production-deployment.md

The app runs: http://52.232.127.28/

However when we attempt to visit the "Posts" route: http://52.232.127.28/posts we see an internal server error:

As a phoenix noob I have no idea how to go about debugging the logs in Prod...

How do we see these logs on the Virtual Machine? Where do logs go and can we tail the logs?

回答1:

In the latest version of Distillery, the logs should be in the folder ./var/log inside the release's root directory (the value of DELIVER_TO in edeliver).