gpt4 book ai didi

logging - 如何查看使用 Edeliver 部署的 Phoenix Web 应用程序中的生产日志?

转载 作者:行者123 更新时间:2023-12-03 23:45:11 26 4
gpt4 key购买 nike

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

该应用程序运行:http://52.232.127.28/
phoenix-app-running

但是,当我们尝试访问“Posts”路由时:http://52.232.127.28/posts
我们看到一个 internal server error :
phoenix-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 的值)。

关于logging - 如何查看使用 Edeliver 部署的 Phoenix Web 应用程序中的生产日志?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43996349/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com