From fc7a8828778e651e2103c9f8caaba6eaca14a6b0 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Wed, 7 Jan 2015 10:09:02 -0500 Subject: [PATCH] fixed #2582 --- src/install.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/install.js b/src/install.js index 6671a1a1d5..91c55293e0 100644 --- a/src/install.js +++ b/src/install.js @@ -44,6 +44,12 @@ questions.main = [ } ]; +questions.optional = [ + { + name: 'port', + default: 4567 + } +]; function checkSetupFlag(next) { var setupVal; @@ -149,11 +155,11 @@ function setupConfig(next) { var config = {}, redisQuestions = require('./database/redis').questions, mongoQuestions = require('./database/mongo').questions, - question, x, numQ, allQuestions = questions.main.concat(redisQuestions).concat(mongoQuestions); + question, x, numQ, allQuestions = questions.main.concat(questions.optional).concat(redisQuestions).concat(mongoQuestions); for(x=0,numQ=allQuestions.length;x