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.

Doesn't start automatically with Serverless Offline

See original GitHub issue

The serverless dynamodb start command can be triggered automatically when using serverless-offline plugin.

In trying to run https://github.com/serverless/examples/tree/master/aws-node-rest-api-with-dynamodb-and-offline as an example, it doesn’t seem like serverless-dynamodb-local is being started by serverless offline hooks.

I see these lines from https://github.com/99xt/serverless-dynamodb-local/blob/v1/index.js#L94: "before:offline:start:init": this.startHandler.bind(this), "before:offline:start:end": this.endHandler.bind(this),

But they don’t seem to trigger the startHandler.

node v.6.10.0 serverless 1.11.0 serverless-dynamodb-local 0.2.18 serverless-offline 3.8.3

Issue Analytics

  • State:open
  • Created 6 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

24reactions
nenticommented, Apr 26, 2017

Just use serverless offline start. Dynamodb is not triggered when using the command without start.

5reactions
Aggiemastercommented, Apr 24, 2017

I’ve seen this same issue. To get around it, i was starting dynamodb local manually, then running serverless offline.

Start dynamo manually: sls dynamodb start --migrate

Then start your app: sls offline

Read more comments on GitHub >

github_iconTop Results From Across the Web

Doesn't start automatically with Serverless Offline #98 - GitHub
The serverless dynamodb start command can be triggered automatically when using serverless-offline plugin.
Read more >
Serverless Offline - Serverless Framework: Plugins
This Serverless plugin emulates AWS λ and API Gateway on your local machine to speed up your development cycles. To do so, it...
Read more >
serverless offline start hot reload not working - Stack Overflow
Try using this command to start your server: serverless offline start --reloadHandler. reloadHandler Reloads handler with each request.
Read more >
Developing locally with Serverless Offline | Reason SLS
In this tutorial, we are gonna use serverless-offline to create and run Serverless offline. Sample. First, create a new project and generate a...
Read more >
serverless-offline/community - Gitter
I run "SLS_DEBUG=* sls offline start". It run in debug mode but any changes made to any of the handler files, it does...
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