Restarting an Express web server using grunt-contrib-watch

I found some code for express livereload and for assets that change but I didn’t find anything that was good for restarting the Express webserver whenever a web server file changed. I’m very used to Django’s workflow where you can leave the dev web server running and it will reload whenever you change a Python file.

Maybe this is already built into Express, but the docs are fairly sparse.

JavaScript frontend books for Express, Grunt and Gulp

Author: Rudolf Olah

Rudolf Olah is a software development expert with over 6 years of professional software developer experience. He has produced the video course Learning AngularJS Testing for PacktPublishing and works on the strategic as well as the tactical parts of software and web devleopment.

4 Replies to “Restarting an Express web server using grunt-contrib-watch”

    1. Yep! It’s pretty good, I’m using it on a recent client contract, only hard part was making sure the NODE_ENV was set correctly for the environment.

Leave a Reply and Share Your Thoughts