Created
August 12, 2015 23:32
-
-
Save stevedomin/be3b6e6a6468f14e8c3a to your computer and use it in GitHub Desktop.
Elixir Playground upstart conf
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 "ex_playground" | |
setuid ex_playground | |
setgid ex_playground | |
start on runlevel [2345] | |
stop on shutdown | |
respawn | |
respawn limit 10 20 | |
env MIX_ENV=prod | |
env PORT=4000 | |
env HOME="/srv/ex_playground" | |
export MIX_ENV | |
export PORT | |
export HOME | |
pre-start exec /bin/sh /srv/ex_playground/rel/ex_playground/bin/ex_playground start | |
post-stop exec /bin/sh /srv/ex_playground/rel/ex_playground/bin/ex_playground stop |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment