14
votes

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
There should be a "log" folder in the directory you deployed your app to in the VM and it should contain the log files. Can you check?Dogbert
Actually it should be in var/log inside the app dir: github.com/bitwalker/distillery/blob/…Dogbert
@Dogbert thanks! in our case /home/{username}/{appname}/var/lognelsonic

1 Answers

14
votes

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