-
Notifications
You must be signed in to change notification settings - Fork 416
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add instructions on how to use with serverless-offline #104
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -118,6 +118,21 @@ The normal Serverless deploy procedure will automatically bundle with Webpack: | |
- Install Serverless Webpack as above | ||
- Deploy with `serverless deploy` | ||
|
||
### Use with serverless-offline | ||
|
||
- Put the serverless-webpack plugin before the serverless-offline plugin in your configuration file. | ||
```yaml | ||
plugins: | ||
- serverless-webpack | ||
- serverless-offline | ||
``` | ||
|
||
- Let serverless-offline know where the bundles are built | ||
``` | ||
> serverless offline start --location .webpack | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This command line will work as soon as #131 is merged. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Good catch, @HyperBrain! |
||
``` | ||
|
||
|
||
### Simulate API Gateway locally | ||
|
||
To start a local server that will act like the API Gateway use the following command. | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps change to 'Usage'?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will change it accordingly and also add the
--location
hint (as long as I'm allowed to do that). Otherwise I open a separate PR with the same changes (as they are trivial) and close this one to get 2.0.0 out later.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@hassankhan Just saw, that we have 2 sections for serverless-offline. This one and one under "Simulate API Gateway locally". I will combine the two into this one (as we plan to remove serve) and commit that. Then we can just remove the whole "Simulate ..." section together with the serve implementation later.