Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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?

like image 256
nelsonic Avatar asked May 16 '17 08:05

nelsonic


1 Answers

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

like image 90
Dogbert Avatar answered Nov 11 '22 00:11

Dogbert