Hi Sorry I accidentally sent my unfinished question here is the edit,
I found this example of using systemd to deploy Phoenix. My quesiton is where do I put restart=‘always’ inside this,
[Unit]
Description=Runner for My Phoenix App
After=network.target
[Service]
WorkingDirectory=/opt/path_to_my_phoenix_app
EnvironmentFile=/etc/default/my_phoenix_app.env
ExecStart=/opt/path_to_my_phoenix_app/bin/my_phoenix_app start
ExecStop=/opt/path_to_my_phoenix_app/bin/my_phoenix_app stop
User=ubuntu
RemainAfterExit=yes
[Install]
WantedBy=multi-user.target
Please let me know if something is wrong with this example. Thanks.