question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Discuss removing `serve` command

See original GitHub issue

Given that serverless-offline and serverless-simulate both exist, are there many users of this plugin that use the included serve functionality?

Removing it would help a lot with code bloat, allowing the plugin to focus solely on building bundles via Webpack.

Any feedback from users would highly be appreciated, would be great to know what plugin/combinations of plugins you use for development.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:29 (19 by maintainers)

github_iconTop GitHub Comments

3reactions
araboldcommented, Jun 30, 2017

We’re successfully using serverless-offline in combination with serverless-webpack since months. I tried theserve command once but it didn’t really work well and didn’t provide the full simulation as serverless-offline does. There are A LOT of things to consider when trying to simulate API Gateway correctly.

So I’m absolutely for removing the serve command from serverless-webpack and redirect users to serverless-offline instead. This will allow focusing on the core features which are packaging, not simulating IMO.

2reactions
araboldcommented, Jul 8, 2017

There’s a difference between lambda and lambda-proxy integration in Serverless. I don’t remember which one works which way, but over the last two years a pattern has emerged for us:

const body = _.isString(event.body) ? JSON.parse(event.body) : event.body;

This seems to be the most reliable and robust way around different behaviors of the simulation. 🤔

Read more comments on GitHub >

github_iconTop Results From Across the Web

Ways To Delete Windows Service In Command-Line or Registry
1. Open Services With Help of Windows Search Box · 2. Find the Service and Move to Properties · 3. The next Step...
Read more >
How can I delete a service in Windows? - Stack Overflow
Run Regedit or Regedt32. Go to the registry entry "HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services". Look for the service that you want delete and delete ...
Read more >
Remove Windows service from command line - Super User
Run Command prompt as an administrator and execute above commands. Enclose the service name in double quotes if it contains spaces. Share.
Read more >
How to delete a service in Windows - gHacks Tech News
Method 1 – Deleting Services Using Windows Registry (Easiest) · Open the Windows Registry · Navigate to the key HKEY_LOCAL_MACHINE\SYSTEM\ ...
Read more >
How to Remove a Service in Windows Server (2016, 2019 ...
... Server Training visit ITProTV: https://go.itpro.tv/courses-microsoft 00:00 Intro 02:23 Using PowerShell 06:21 Using Windows Command Line ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found