Skip to content

Commit

Permalink
Assume $BUILD_DIR is Play app root
Browse files Browse the repository at this point in the history
  • Loading branch information
tkral committed Oct 4, 2011
1 parent 47b8496 commit 376e0d3
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions bin/compile
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,9 @@ echo " done"
echo "-----> Building Play! application..."
$PLAY_PATH/play version | sed -u 's/^/ /'

# Precompile the Play! application represented by an application.conf file
# (Do not precompile copied modules or anything found in the Play! framework)
APP_DIR=$(find -wholename "*/conf/application.conf" ! -wholename "*modules*" ! -wholename "*$PLAY_PATH*" -type f | sed 's/conf\/application.conf//')
echo " Play! application root found at $APP_DIR"
# Precompile the Play! application at the root of $BUILD_DIR
APP_DIR=./
echo " Building Play! application at directory $APP_DIR"

DEPENDENCIES_CMD="$PLAY_PATH/play dependencies $APP_DIR --forceCopy --silent -Duser.home=$BUILD_DIR 2>&1"
echo " Resolving dependencies: $DEPENDENCIES_CMD"
Expand All @@ -82,6 +81,6 @@ rm -fr $IVY_PATH

# Warn if no Procfile is present
if [ ! -f Procfile ]; then
echo "-----> No Procfile found. Will use process: "
echo "-----> No Procfile found. Will use the following default process: "
echo " play run --http.port=\$PORT \$PLAY_OPTS"
fi

0 comments on commit 376e0d3

Please sign in to comment.