diff --git a/config/database.js b/config/database.js index 1f4cfc593..fafd3f18d 100644 --- a/config/database.js +++ b/config/database.js @@ -1,4 +1,4 @@ module.exports = { - remoteUrl : 'mongodb://node:nodeuser@mongo.onmodulus.net:27017/uwO3mypu', - localUrl: 'mongodb://localhost/meanstacktutorials' + remoteUrl : process.env.MONGO_URI || 'mongodb://node:nodeuser@mongo.onmodulus.net:27017/uwO3mypu', + localUrl: process.env.MONGO_URI || 'mongodb://localhost/meanstacktutorials' }; diff --git a/package.json b/package.json index b4584b750..e0d0e50d8 100644 --- a/package.json +++ b/package.json @@ -4,6 +4,9 @@ "description": "Simple todo application.", "main": "server.js", "author": "Scotch", + "scripts": { + "start": "node server.js" + }, "dependencies": { "body-parser": "^1.4.3", "express": "^4.13.4",