Skip to content

Commit

Permalink
fix foreman startup to work with play 2 RC-2
Browse files Browse the repository at this point in the history
… 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
tackley committed Feb 16, 2012
1 parent 3c5538a commit 50b0ab4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Procfile
Original file line number Original file line Diff line number Diff line change
@@ -1,4 +1,4 @@
webapp: ./sbt start webapp: ./start_app.sh
listenerguweb01: ./start_pub.sh guweb01 listenerguweb01: ./start_pub.sh guweb01
listenerguweb51: ./start_pub.sh guweb51 listenerguweb51: ./start_pub.sh guweb51


Expand Down
2 changes: 1 addition & 1 deletion sbt
Original file line number Original file line Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash #!/bin/bash
java -Dfile.encoding=UTF8 -Xmx1536M -Xss1M -XX:+CMSClassUnloadingEnabled -XX:MaxPermSize=512m \ 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 "$@"


4 changes: 4 additions & 0 deletions start_app.sh
Original file line number Original file line Diff line number Diff line change
@@ -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.