I deploy phoenix application with edeliver to my server. In case of sudden server restart I want my phoenix-app to be revived automatically and monitored. It seems that systemd tool can help me, but it requires phoenix pid file to be stored somewhere.
Is there a way to make edeliver save phoenix pid file right after deploy? Maybe there is a better way than systemd to revive and monitor the application after server restart?
note: I'm most of all interested in monitoring pid.
I finally managed to find the solution. There are actually after deploy hooks in edeliver.
In
.deliver/config
: