如何查看Edeliver部署的Phoenix Web应用的生产日志?

How to View Production Logs in Phoenix Web Application Deployed using Edeliver?

使用 Edeliver & Distillery 将我们的应用程序成功部署到虚拟机后,执行以下步骤: https://github.com/dwyl/learn-phoenix-framework/blob/master/production-deployment.md

应用程序运行:http://52.232.127.28/

但是当我们尝试访问 "Posts" 路由时:http://52.232.127.28/posts 我们看到 internal server error

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

我们如何在虚拟机上看到这些日志? 日志放在哪里,我们可以 tail 日志吗?

在最新版本的 Distillery 中,日志 should be 位于发布根目录的文件夹 ./var/log 中(edeliver 中 DELIVER_TO 的值)。