Permalink
Browse files

fix foreman startup to work with play 2 RC-2

… which expects port to appear on the command line,
and alas foreman really doesn't appear to like 
quotes in the Procfile
  • Loading branch information...
1 parent 3c5538a commit 50b0ab47607bbe674aa445f068f087600e1a9028 @tackley committed Feb 16, 2012
Showing with 6 additions and 2 deletions.
  1. +1 −1 Procfile
  2. +1 −1 sbt
  3. +4 −0 start_app.sh
View
@@ -1,4 +1,4 @@
-webapp: ./sbt start
+webapp: ./start_app.sh
listenerguweb01: ./start_pub.sh guweb01
listenerguweb51: ./start_pub.sh guweb51
View
2 sbt
@@ -1,4 +1,4 @@
#!/bin/bash
java -Dfile.encoding=UTF8 -Xmx1536M -Xss1M -XX:+CMSClassUnloadingEnabled -XX:MaxPermSize=512m \
- -jar $(dirname $0)/sbt-launch-0.11.0.jar $*
+ -jar $(dirname $0)/sbt-launch-0.11.0.jar "$@"
View
@@ -0,0 +1,4 @@
+#!/bin/bash
+
+# this script needed because foreman doesn't seem to like the quotes
+./sbt "start $PORT"

0 comments on commit 50b0ab4

Please sign in to comment.