how to reload the nodejs app after making changes to the file?

Source: https://stackoverflow.com/questions/39676168/how-to-reload-the-nodejs-app-after-making-changes-to-the-file

https://github.com/remy/nodemon#nodemon
You need to stop and re run the server to see your latest update. To automate this, you can use nodemon, do npm i nodemon -g
And run nodemon http_test.js
Now, for every change you make tohttp_test.js the server will be restarted automatically

Không có nhận xét nào:

Cold Turkey Blocker

 https://superuser.com/questions/1366153/how-to-get-rid-of-cold-turkey-website-blocker-get-around-the-block Very old question, but still wan...