Skip to content

Commit

Permalink
Create README.md
Browse files Browse the repository at this point in the history
This is part off this change in serverless-webpack: serverless-heaven/serverless-webpack#131
Explain how to work with the serverless-offline, serverless-webpack and serverless-dynamodb-local
  • Loading branch information
Gregoirevda authored Jun 9, 2017
1 parent 47cd053 commit 71f48fa
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,18 @@ Serverless offline plugin can invoke shell scripts when a simulated server has b
This plugin simulates API Gateway for many practical purposes, good enough for development - but is not a perfect simulator.
Specifically, Lambda currently runs on Node v4.3.2 and v6.10.0, whereas *Offline* runs on your own runtime where no memory limits are enforced.

## Usage with serverless-offline and serverless-webpack plugin

Run `serverless offline start`. In comparison with `serverless offline`, the `start` command will fire an `init` and a `end` lifecycle hook which is needed for serverless-offline and serverless-dynamodb-local to switch off ressources.

Add plugins to your `serverless.yml` file:
```yaml
plugins:
- serverless-webpack
- serverless-dynamodb-local
- serverless-offline #serverless-offline needs to be last in the list
```


## Credits and inspiration

Expand Down

0 comments on commit 71f48fa

Please sign in to comment.