Skip to content
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

Closed
wants to merge 1 commit into from

Conversation

darthtrevino
Copy link

Adding a brief instructional section on how to use this plugin with serverless-offilne. I had to dig around a while to discover that you need the --location flag.

Adding a brief instructional section on how to use this plugin with serverless-offilne. I had to dig around a while to discover that you need the --location flag.
Copy link
Member

@HyperBrain HyperBrain left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looked over this again ... the second alternative offline invocation should be mentioned too, although I do not really know, when exactly which one is needed. We use it without start here.
#131 Adds support for the start command (additional hook).


- Let serverless-offline know where the bundles are built
```
> serverless offline start --location .webpack
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This command line will work as soon as #131 is merged.
The alternative is omitting start, so we may add the serverless command without start here too:
serverless offline --location .webpack

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch, @HyperBrain!

@HyperBrain
Copy link
Member

@hassankhan Just merged #132 which also updates the serverless offline section. We should compare the two and see how they fit together.

@hassankhan
Copy link
Contributor

Should we perhaps add a note mentioning if you use custom paths for your webpack.config.js, you should remember to update the --location flag accordingly?

@@ -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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps change to 'Usage'?

Copy link
Member

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.

Copy link
Member

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.

@HyperBrain
Copy link
Member

Restructured serverless-offline doc in #144 and integrated everything discussed or changed here. So this one is obsoleted and can be closed.

@HyperBrain HyperBrain closed this Jul 4, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants