Skip to content

Instantly share code, notes, and snippets.

@jpiche
Last active October 8, 2015 00:47
Show Gist options
  • Select an option

  • Save jpiche/3251026 to your computer and use it in GitHub Desktop.

Select an option

Save jpiche/3251026 to your computer and use it in GitHub Desktop.
Play Framework 2.2 upstart conf
description "start and stop play framework"
version "1.0"
author "Joseph J. Piché"
start on runlevel [2345]
stop on runlevel [06]
env USER=site
env GROUP=nginx
env PLAY_HOME="/home/site/appname"
env PLAY_ADDR=127.0.0.1
env PLAY_PORT=9000
respawn
respawn limit 10 5
umask 022
exec ${PLAY_HOME}/target/universal/stage/bin/appname -mem 384 -J-server -Dhttp.port=${PLAY_PORT} -Dhttp.address=${PLAY_ADDR} -Ddb.default.url="postgres://user:pass@localhost/db"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment