How to edit and deploy code without restarting server?

I have node server which i run using forever. But each time if I edit my code I'll have to restart the server. I came across the module called hotnode which can perform live edits but will it have the same performance as the forever module or can I run my code using both the modules. I am confused. Any help wil be much helpful

Have a look at nodemon.

nodemon will watch the files in the directory that nodemon was started, and if they change, it will automatically restart your node application.

As an alternative to nodemon you can use node-supervisor.

I used to use nodemon, but for some reason it didn't detect code changes on my linux box, which supervisor did flawlessly.

The downside is that it doesn't (or at least didn't) give the colorful output nodemon gives.