Created
May 23, 2015 03:44
-
-
Save fernandocanizo/349f1bf8956b39929029 to your computer and use it in GitHub Desktop.
Node.js tools and libraries
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
# Node.js tools and libraries | |
## Tools | |
- Monitor for any changes in your source code and automatically restart your server | |
In development: | |
``` | |
sudo npm install -g nodemon | |
``` | |
or | |
``` | |
sudo npm install -g supervisor | |
``` | |
In production: | |
- To run node indefinitely and restart it in case of crash | |
``` | |
sudo npm install -g forever | |
``` | |
- Enable debugging with Node Inspector | |
``` | |
sudo npm install -g node-inspector | |
``` | |
and use it with: | |
node-debug app.js | |
- To lock down versions of dependencies for a project, use it when you're about to deploy | |
sudo npm install -g shrinkwrap |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment