I am a newbie in NodeJS, what to do with the below setting which is given in the Express documentation?
app.configure('production', function(){
app.set('db uri', 'n.n.n.n/prod');
});
Should I just copy and paste or should I need to change the ‘db.uri’ and ‘n.n.n.n’ ?
They are you application settings, production are the settings you want to use when rolling out your application to a live server, you can also create a app.configure for development. These should be things like database connection strings, loggers, the things that differ across your development environments.
Quick google search will bring about a few things, for example how someone wants to use it:
Another SO post on settings
HTH