mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
Updated docs for cli flag changes.
This commit is contained in:
@@ -9,7 +9,7 @@ Creating Lambda functions is not much different than using regular functions, ju
|
||||
the `lambda-node-4` runtime.
|
||||
|
||||
```sh
|
||||
fn init --runtime lambda-node-4 <DOCKER_HUB_USERNAME>/lambda-node
|
||||
fn init --runtime lambda-node-4 --name lambda-node
|
||||
```
|
||||
|
||||
Be sure the filename for your main handler is `func.js`.
|
||||
|
||||
@@ -52,6 +52,6 @@ by passing `--version <version>.`
|
||||
|
||||
You can then deploy the imported lambda as follows:
|
||||
```
|
||||
./fn deploy myapp
|
||||
./fn deploy --app myapp
|
||||
````
|
||||
Now the function can be reached via ```http://$HOSTNAME/r/user/my-function```
|
||||
@@ -81,7 +81,7 @@ Creating Lambda functions is not much different than using regular functions, ju
|
||||
the `lambda-node` runtime.
|
||||
|
||||
```sh
|
||||
fn init --runtime lambda-node <DOCKER_HUB_USERNAME>/lambda-node
|
||||
fn init --runtime lambda-node --name lambda-node
|
||||
```
|
||||
|
||||
Be sure the filename for your main handler is `func.js`.
|
||||
|
||||
Reference in New Issue
Block a user