Navigation Menu

Skip to content
This repository has been archived by the owner on Feb 12, 2022. It is now read-only.

Commit

Permalink
read GRAILS_ENV
Browse files Browse the repository at this point in the history
  • Loading branch information
yohanesgultom committed Feb 3, 2015
1 parent 1ef927d commit 5d19b9c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion bin/compile
Expand Up @@ -134,6 +134,11 @@ fi

echo "grails.dependency.cache.dir = '$CACHE_DIR/.grails_cache'" >> $HOME/.grails/settings.groovy

# before doing a git push of your app specify heroku config:add GRAILS_ENV=yourenvironment
if [ $GRAILS_ENV ]; then
BUILD_ENV_OPT="-Dgrails.env=$GRAILS_ENV"
fi

# build app
if [ "$GRAILS_VERSION" != "1.3.7" ] ; then
BUILDCMD_OPT="-plain-output"
Expand All @@ -144,7 +149,7 @@ echo "-----> Executing $COMPILECMD"
eval "$COMPILECMD" | sed -u 's/^/ /'
check_build_status

BUILDCMD="$GRAILS_CMD $BUILDCMD_OPT -Divy.default.ivy.user.dir=$CACHE_DIR war --non-interactive"
BUILDCMD="$GRAILS_CMD $BUILDCMD_OPT $BUILD_ENV_OPT -Divy.default.ivy.user.dir=$CACHE_DIR war --non-interactive"
echo "-----> Executing $BUILDCMD"
eval "$BUILDCMD" | sed -u 's/^/ /'
check_build_status
Expand Down

0 comments on commit 5d19b9c

Please sign in to comment.