Skip to content

Commit 4a2f533

Browse files
committed
Make function support normal lambda and runtime
1 parent dec984c commit 4a2f533

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

runtime/layers/function/bootstrap

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,15 @@
33
# Fail on error
44
set -e
55

6+
# if USE_RUNTIME == true
7+
BOOTSTRAP = (${_HANDLER//:/ })[0]
8+
# else
9+
BOOTSTRAP = "/opt/bref/bootstrap.php"
10+
# fi
11+
612
while true
713
do
814
# We redirect stderr to stdout so that everything
915
# written on the output ends up in Cloudwatch automatically
10-
/opt/bin/php "/opt/bref/bootstrap.php" 2>&1
16+
/opt/bin/php "${BOOTSTRAP}" 2>&1
1117
done

0 commit comments

Comments
 (0)