Seeing how node.js is ultimately javascript, shouldn’t changes to any files be seen when trying to run the app command? I’ve forked the yuidocjs repo on github and am trying to work my way through my local build, but for some reason my minor changes do not get picked up. I’m new to node.js so I’m not really sure what the exact conventions are.
Seeing how node.js is ultimately javascript, shouldn’t changes to any files be seen when
Share
In node.js when you
requirea file the source code gets interpreted. It’s considered good practice to require all code when you start the server so all the code gets interpreted once.The code does not get re-interpreted whenever you run it though.
So changes are not instantaneous.
To help you out, try
supervisorwhich does hot reloading of the server on code changes.It is possible to make instant changes happen by re-interpreting source code but that is not the default action. Generally you should just re-start the server.