We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dec984c commit 4cb8f3fCopy full SHA for 4cb8f3f
1 file changed
runtime/layers/function/bootstrap
@@ -3,9 +3,17 @@
3
# Fail on error
4
set -e
5
6
+# if APP_RUNTIME does not exist
7
+if [[ -z "${APP_RUNTIME}" ]]; then
8
+ BOOTSTRAP="/opt/bref/bootstrap.php"
9
+else
10
+ # Split _HANDLER on ":" and take the first part
11
+ BOOTSTRAP=(${_HANDLER//:/ })
12
+fi
13
+
14
while true
15
do
16
# We redirect stderr to stdout so that everything
17
# written on the output ends up in Cloudwatch automatically
- /opt/bin/php "/opt/bref/bootstrap.php" 2>&1
18
+ /opt/bin/php "${BOOTSTRAP}" 2>&1
19
done
0 commit comments