serverless-plugin-simulate
serverless-plugin-simulate copied to clipboard
Restart server on changes to serverless.yml
This is a Feature Proposal
Description
When a user changes their serverless.yml config the server is unware of these changes and will not reflect them. We should watch serverless.yml and hot-reload the server on changes.
Bonus In the case that the user has related config, we should allow the user to specify files to watch. (Extra bonus support globs)
Possible config in serverless.yml
custom:
simulate:
configFiles:
- serverless.yml
- vpc.yml
``
The problem is serverless.yml load by serverless framework. So that mean we need to wrap one more level before trigger 'sls simulator gateway'. it look like more complicated.
@johncmckim hi