Last active
June 8, 2016 08:30
-
-
Save mrister/d96e7888eeb8c0205eb21a12b879b6a8 to your computer and use it in GitHub Desktop.
nodemon example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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