Browse Source

Add example for serve command

master
Nicola Peduzzi 8 years ago
committed by GitHub
parent
commit
426347c74e
  1. 13
      README.md

13
README.md

@ -95,6 +95,19 @@ Options are:
- `--port` or `-p` (optional) The local server port. Defaults to `8000`
The `serve` command will automatically look for the local `serverless.yml` and serve
all the `http` events. For example this configuration will generate a GET enpoint:
```yaml
functions:
hello:
handler: handler.hello
events:
- http:
method: get
path: hello
```
### Run a function locally
To run your bundled functions locally you can:

Loading…
Cancel
Save