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:

StaticImage

  import React , { useEffect , useRef } from "react" import { StaticImage } from "gatsby-plugin-image" impor...