Skip to content

Instantly share code, notes, and snippets.

Created February 7, 2016 12:29
What would you like to do?
description "Example App"
setuid ubuntu
setgid ubuntu
start on runlevel [2345]
stop on runlevel [016]
expect stop
env MIX_ENV=prod
export MIX_ENV
env PORT=8080
export PORT
env HOME={{ app_home }}
export HOME
pre-start exec /bin/sh {{ app_home }}/bin/example_app start
post-stop exec /bin/sh {{ app_home }}/bin/example_app stop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment