Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

Use nodemon or supervisor to reload only the files without restart all the server - WebStorm

Use nodemon or supervisor to reload only the files without restart all the server - WebStorm

Problem

I just took a look to this tutorial: How can I run Nodemon from within WebStorm?

I'm wondering how Reload only the files updated and don't restart the entire server instance. I'm wondering also if it's possible to don't break a debug breakpoint, because for the moment the entire server is restarted and if I'm following instruction step by step using the debogguer, I lost the track.

By the way, there are my ways to use them with webstorm, it's particularly tricky with Supervisor. Because it needs to get the app.js and everything as parameters.

Supervisor: https://docs.google.com/file/d/0ByzbHcAxmCyvTGdHOWJSTTYzNWs/edit

Nodemon: https://docs.google.com/file/d/0ByzbHcAxmCyvdVQ3azFhSlV0dEU/edit

Problem courtesy of: Vadorequest

Solution

You can use modules like hotswap to reload files when they change.

It can cause memory leaks and other stuff, but it's working fine for development.

Solution courtesy of: alex

Discussion

View additional discussion.



This post first appeared on Node.js Recipes, please read the originial post: here

Share the post

Use nodemon or supervisor to reload only the files without restart all the server - WebStorm

×

Subscribe to Node.js Recipes

Get updates delivered right to your inbox!

Thank you for your subscription

×