September 16th, 2013, 04:27 AM
Hi Guys, I am new here and to node.js or any mvc programming...
I have a question that I keep seeing most developers are doing some settings to their production and development environment, like the one in node.js/ express.js
the questions is how do node.js knows when to use these environment?
app.set('db url', 'localhost/dev');
// production only.
app.set('db url', 'n.n.n.n/prod');