How to View Production Logs in Phoenix Web Applica

2019-03-18 10:44发布

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/ phoenix-app-running

However when we attempt to visit the "Posts" route: http://52.232.127.28/posts we see an internal server error: phoenix-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条回答
看我几分像从前
2楼-- · 2019-03-18 11:34

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).

查看更多
登录 后发表回答