Skip to content

Instantly share code, notes, and snippets.

@daisuke-morita
Created February 7, 2016 12:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save daisuke-morita/e3d3aeffa5ffef8f1226 to your computer and use it in GitHub Desktop.
Save daisuke-morita/e3d3aeffa5ffef8f1226 to your computer and use it in GitHub Desktop.
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