Skip to content

Commit d9c31dc

Browse files
authored
Update Nodejs example to forward CMD arguments
The nodejs example doesn't seem to work as given. Shouldn't it forward the handler argument from CMD as with the Python example?
1 parent a930cb3 commit d9c31dc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

doc_source/images-test.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,9 @@ You can build RIE into a base image\. Download the RIE from GitHub to your local
8282
```
8383
#!/bin/sh
8484
if [ -z "${AWS_LAMBDA_RUNTIME_API}" ]; then
85-
exec /usr/local/bin/aws-lambda-rie /usr/bin/npx aws-lambda-ric
85+
exec /usr/local/bin/aws-lambda-rie /usr/bin/npx aws-lambda-ric $@
8686
else
87-
exec /usr/bin/npx aws-lambda-ric
87+
exec /usr/bin/npx aws-lambda-ric $@
8888
fi
8989
```
9090

@@ -144,4 +144,4 @@ You install the runtime interface emulator to your local machine\. When you run
144144
curl -XPOST "http://localhost:9000/2015-03-31/functions/function/invocations" -d '{}'
145145
```
146146

147-
This command invokes the function running in the container image and returns a response\.
147+
This command invokes the function running in the container image and returns a response\.

0 commit comments

Comments
 (0)