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:

Check to be sure that port 22 is enabled before you reload

 https://superuser.com/questions/590600/ufw-is-active-but-not-enabled-why etting  ENABLED=yes  in  /etc/ufw/ufw.conf  did it for me. $ sudo ...