I feel this is something best left to the developer to choose, rather than including the functionality in Keystone.
There are several packages that solve this well - my personal favourite being nodemon
Just npm install -g nodemon then use nodemon keystone to start your app instead of node keystone.
Forever is also a great tool to use when you want a script to automatically restart if it crashes, and you use it the same way - forever start keystone.js. We use this for our servers (when not hosting on a PAAS like Heroku that does it for you)
Most helpful comment
I feel this is something best left to the developer to choose, rather than including the functionality in Keystone.
There are several packages that solve this well - my personal favourite being nodemon
Just
npm install -g nodemonthen usenodemon keystoneto start your app instead ofnode keystone.Forever is also a great tool to use when you want a script to automatically restart if it crashes, and you use it the same way -
forever start keystone.js. We use this for our servers (when not hosting on a PAAS like Heroku that does it for you)