Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

check error level after starting commandbox #1258

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion build.bat
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,16 @@ cfengine="lucee@5" ^
port=8765 ^
openbrowser=false ^
directory=%CWD% ^
javaVersion=openjdk8_jre_jdk8u332-b09 ^
javaVersion=openjdk88_jre_jdk8u132-b09 ^
heapSize=2048

@echo off
IF ERRORLEVEL EQ 0 GOTO start
echo Exiting build, commandbox build failed with exitcode %exitcode%
zspitzer marked this conversation as resolved.
Show resolved Hide resolved
exit /b %exitcode%
echo on
:start

echo Done!
echo Importing reference docs from previously undocumented functions and tags...
curl http://localhost:8765/import.cfm?textlogs=true
Expand Down
9 changes: 8 additions & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,16 @@ cfengine="lucee@5" \
port=8765 \
openbrowser=false \
directory=$CWD \
javaVersion=openjdk8_jre_jdk8u332-b09 \
javaVersion=openjdk8_jre_jdk8u132-b09 \
heapSize=2048;

if [ -f .exitcode ]; then
exitcode=$(<.exitcode)
rm -f .exitcode
echo "Exiting build, Lucee / Commandbox failed to start. Exit code: $exitcode"
zspitzer marked this conversation as resolved.
Show resolved Hide resolved
exit $exitcode
fi

echo "Local Lucee Server Started!";
echo "Importing reference docs from previously undocumented functions and tags..."
curl --no-progress-meter http://localhost:8765/import.cfm?textlogs=true
Expand Down