【问题标题】:How to View Production Logs in Phoenix Web Application Deployed using Edeliver?如何在使用 Edeliver 部署的 Phoenix Web 应用程序中查看生产日志?
【发布时间】:2017-10-15 05:36:28
【问题描述】:

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

应用运行:http://52.232.127.28/

但是,当我们尝试访问“帖子”路线时:http://52.232.127.28/posts 我们看到internal server error

作为一个凤凰noob不知道如何去调试Prod中的日志...

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

【问题讨论】:

  • 您在虚拟机中部署应用程序的目录中应该有一个“日志”文件夹,其中应该包含日志文件。可以查一下吗?
  • 其实应该在var/log里面的app dir:github.com/bitwalker/distillery/blob/…
  • @Dogbert 谢谢!在我们的例子中/home/{username}/{appname}/var/log

标签: logging erlang elixir phoenix-framework devops


【解决方案1】:

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

【讨论】:

  • 有没有办法更改文件名?默认为erlang.log ...
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2011-12-21
  • 1970-01-01
  • 2017-12-18
  • 2019-08-25
  • 1970-01-01
相关资源
最近更新 更多