-
Notifications
You must be signed in to change notification settings - Fork 6
Node restart server tip
When developing on the appdev framework, sometimes I find I have been looking at an issue for a while, and I realize that I did not restart the server. Restarting the server (node app.js) causes the appdevjs framework to re-scan the directory structure, which often fixes mysterious issues. (e.g. you checked out a different git branch, but forgot to restart the server)
To avoid needing to remember to restart the server, you can use the command nodemon instead of node. This command watches the directory structure and restarts the server automatically when there is a file change.
I personally don't use it, because I find it restarts the server for client side code changes too, and it is annoying to have to re-login too much. There is a solution to that, which I'll post when I learn more about it.