Last active
October 8, 2015 00:47
-
-
Save jpiche/3251026 to your computer and use it in GitHub Desktop.
Play Framework 2.2 upstart conf
This file contains hidden or 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 "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