-
Notifications
You must be signed in to change notification settings - Fork 1
Node.js
Sébastien LUCAS edited this page Jan 23, 2014
·
13 revisions
-
Exports in modules
http://openmymind.net/2012/2/3/Node-Require-and-Exports/ -
Styling convention
https://github.com/felixge/node-style-guide -
What is NODE_ENV
http://www.hacksparrow.com/running-express-js-in-production-mode.html To set a server in production mode, the only thing to do is typingexport NODE_ENV=productionTo have it saved when the server restart
$ echo export NODE_ENV=production >> ~/.bash_profile
$ source ~/.bash_profile