Skip to content

Instantly share code, notes, and snippets.

@jgwill
Last active November 3, 2018 00:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jgwill/20eaa5cf20178f05ccec3b67b0a7253e to your computer and use it in GitHub Desktop.
Save jgwill/20eaa5cf20178f05ccec3b67b0a7253e to your computer and use it in GitHub Desktop.
@stcgoal Auto Restart a NodeJS Server When development files are changed, it restart the server.

Auto Restart a NodeJS Server

When development files are changed, it restart the server.

npm start

Ref & info

  • Package:NodeMon
  • sudo npm install nodemon -g
"scripts": {
"start": "nodemon index.js --ignore index-app.js",
"test": "echo \"Error: no test specified\" && exit 1"
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment