Skip to content

Instantly share code, notes, and snippets.

@daisuke-morita
Created February 7, 2016 12:29
Embed
What would you like to do?
Phoenixアプリ用のUpstart設定
description "Example App"
setuid ubuntu
setgid ubuntu
start on runlevel [2345]
stop on runlevel [016]
expect stop
respawn
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