Not starting DDB-local when running sls offline
See original GitHub issueActual Behaviour
Not starting local dynamo when running sls offline
Steps to reproduce it
plugins:
- serverless-plugin-typescript
- serverless-plugin-optimize
- serverless-pseudo-parameters
- serverless-dynamodb-local
- serverless-offline
custom:
serverless-offline:
useChildProcesses: true
dynamodb:
start: # why doesn't this automatically start?
port: 4455
# inMemory: true
migrate: true
stages:
- dev
LogCat for the issue
Provide logs for the crash here
β― sls offline
Serverless: Running "serverless" installed locally (in service node_modules)
Serverless: Compiling with Typescript...
Serverless: Using local tsconfig.json
Serverless: Typescript compiled.
Serverless: Watching typescript files...
offline: Starting Offline: dev/eu-west-1.
offline: Offline [http for lambda] listening on http://localhost:3002
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β β
β POST | http://localhost:3000/dev...... β β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
offline: [HTTP] server ready: http://localhost:3000 π
offline:
offline: Enter "rp" to replay the last request
Would you like to work on the issue?
Not sure where to start
Issue Analytics
- State:
- Created 3 years ago
- Reactions:2
- Comments:5
Top Results From Across the Web
Not starting DDB-local when running sls offline #256 - GitHub
Actual Behaviour Not starting local dynamo when running sls offline Steps to reproduce it plugins: - serverless-plugin-typescriptΒ ...
Read more >[Solved] Unable to start DynamoDB Local process - Dynobase
If DynamoDB Offline is still not running, it might be failing to do so because ... port by specifying -p option to the...
Read more >node.js - Serverless framework won't start with dynamodb local
the console should display Offline as one of the plugins now available in your Serverless project. then In your project root run: serverlessΒ ......
Read more >serverless-dynamodb-local - npm
Start using serverless-dynamodb-local in your project by running `npm i ... You can use this with 'serverless-offline' Plugin.
Read more >Serverless Dynamodb Local Plugin
Start : sls dynamodb start. This starts the DynamoDB Local instance, either as a local Java program or, if the --docker flag is...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Yeah, same issue here⦠you can start it with
sls dynamodb start
but really needs to auto start with serverless-offline.Edit: it seems I have found the solution⦠run serverless offline with the command:
serverless offline start
sls offline
andserverless offline
dose not start dynamodb-local automatically. Butsls offline start
andserverless offline start
dose start dynamodb-local automatically.Because serverless-dynamodb-local has hook with
before:offline:start
.So you need to add
start
.