Serverless-offline: Watch

Created on 8 Oct 2018  路  3Comments  路  Source: dherault/serverless-offline

It would be nice to restart the offline server if a specific file changes.

Related issue:
https://github.com/seek-oss/serverless-haskell/issues/69

Most helpful comment

Try this

nodemon --exec "sls offline start" -e "extensions,to,watch,for,example,js,elm,hs,py"

All 3 comments

You can use a tool like nodemon.

@dherault Do you have an example of using nodemon to handle the restarts? I can't seem to find an example.

Try this

nodemon --exec "sls offline start" -e "extensions,to,watch,for,example,js,elm,hs,py"

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Dong9769 picture Dong9769  路  4Comments

conradoramalho picture conradoramalho  路  3Comments

ktwbc picture ktwbc  路  4Comments

Ali-Dalal picture Ali-Dalal  路  4Comments

ghost picture ghost  路  4Comments