Skip to content

Instantly share code, notes, and snippets.

@mrister
Last active June 8, 2016 08:30
Show Gist options
  • Save mrister/d96e7888eeb8c0205eb21a12b879b6a8 to your computer and use it in GitHub Desktop.
Save mrister/d96e7888eeb8c0205eb21a12b879b6a8 to your computer and use it in GitHub Desktop.
nodemon example
#!/usr/bin/env bash
# first, install nodemon from npm
npm install -g nodemon
# use nodemon to monitor your app.js by running the following command from your project directory.
nodemon app.js
# Or use nodemon in verbose mode and start the server.
# Watch app and lib directories and ignore tests and .spec.js named files in lib directory.
# Only detect changes on files with js extensions (-e).
nodemon -V --debug --ignore tests/ --ignore 'lib/*.spec.js'--watch app --watch lib -e js app.js
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment