serverless-plugin-simulate icon indicating copy to clipboard operation
serverless-plugin-simulate copied to clipboard

Restart server on changes to serverless.yml

Open johncmckim opened this issue 8 years ago • 2 comments

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
``

johncmckim avatar Feb 09 '17 20:02 johncmckim

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.

yoyeung avatar Mar 18 '17 14:03 yoyeung

@johncmckim hi

yoyeung avatar Jun 16 '17 05:06 yoyeung