If I start local dynamodb first (sls dynamodb start -p 8000 --migrate true &
), then start serverless offline, it always complains the port 8000 is used.
Seems serverless offline wants to take care local dynamodb starting.
But if I start serverless offline directly (sls offline start), it starts local dynamodb, but ignore the option --migrate true
.
I confirm I have put the custom variables in serverless.yml
already:
custom:
dynamodb:
start:
migrate: true