Phoenixアプリ用のUpstart設定
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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