File tree 1 file changed +4
-2
lines changed
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -48,12 +48,13 @@ trap 'rm -f "$OUTFILE"' EXIT
48
48
echo " Using temporary output file: $OUTFILE "
49
49
50
50
# Add timeout configuration
51
- TIMEOUT=600 # 60 seconds represented as 600 tenths of a second
51
+ TIMEOUT=1200 # 60 seconds represented as 600 tenths of a second
52
52
INTERVAL=5 # Represent 0.5 seconds as 5 tenths of a second
53
53
TIMER=0
54
54
55
55
# Start the application and capture logs in the background
56
- pnpm start --character=characters/trump.character.json > " $OUTFILE " 2>&1 &
56
+ # 27 includes success and that's what the level we're looking for is
57
+ DEFAULT_LOG_LEVEL=success pnpm start --character=characters/trump.character.json > " $OUTFILE " 2>&1 &
57
58
58
59
APP_PID=$! # Capture the PID of the background process
59
60
@@ -62,6 +63,7 @@ APP_PID=$! # Capture the PID of the background process
62
63
while true ; do
63
64
if (( TIMER >= TIMEOUT )) ; then
64
65
>&2 echo " ERROR: Timeout waiting for application to start after $(( TIMEOUT / 10 )) seconds"
66
+ cat $OUTFILE
65
67
kill $APP_PID # Terminate the pnpm process
66
68
exit 1
67
69
fi
You can’t perform that action at this time.
0 commit comments