Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@stevedomin
Created August 12, 2015 23:32
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stevedomin/be3b6e6a6468f14e8c3a to your computer and use it in GitHub Desktop.
Save stevedomin/be3b6e6a6468f14e8c3a to your computer and use it in GitHub Desktop.
Elixir Playground upstart conf
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