tags:

views:

98

answers:

2

When I start up my application in node.js

node app.js

and then make a change in app.js file, I have to exit node.js and restart it in order for this change to show up in my browser.

Is node.js caching the file at startup? Is there a way to avoid this, at least in development mode?

A: 

Modules are cached when they are required. Take a look at http://github.com/isaacs/node-supervisor as a solution to your problem.

thatismatt
A: 

http://github.com/shimondoodkin/nodejs-autorestart

Shimon Doodkin
Welcome to StackOverflow! While links to code sources are great, you might want to explain what it is that the code does and how to use it.
Chacha102