diff options
Diffstat (limited to 'node_simple.js')
| -rw-r--r-- | node_simple.js | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/node_simple.js b/node_simple.js index f07c0e8..13db6c1 100644 --- a/node_simple.js +++ b/node_simple.js @@ -103,8 +103,14 @@ var _ = require('underscore'); var db; // Standard URI format: mongodb://[dbuser:dbpassword@]host:port/dbname -var uri = exports.uri = 'mongodb://general:assignment4@ds057862.mlab.com:57862/solutions_repo'; - +if (process.env.NODE_ENV == 'staging') { + var uri = exports.uri = 'mongodb://root:solutions_repo@ds023624.mlab.com:23624/solutions_staging'; +} else if (process.env.NODE_ENV == 'production') { + var uri = exports.uri = 'mongodb://general:assignment4@ds057862.mlab.com:57862/solutions_repo'; +} else if (process.env.NODE_ENV == 'development') { + // Keep this for testing on local machine, do not remove. - Humair + //var uri = 'mongodb://localhost:27017/db'; +} // Keep this for testing on local machine, do not remove. - Humair //var uri = 'mongodb://localhost:27017/db'; |
