diff --git a/install/web.js b/install/web.js index c462c24e6a..515a4fe7b6 100644 --- a/install/web.js +++ b/install/web.js @@ -48,7 +48,19 @@ function setupRoutes() { } function install(req, res, next) { - res.render('install/index', {}); + var dbs = ['redis', 'mongo'], + databases = []; + + dbs.forEach(function(el) { + databases.push({ + name: el, + questions: require('../src/database/' + el).questions + }); + }); + + res.render('install/index', { + databases: databases + }); } function compileLess(callback) { diff --git a/src/views/install/index.tpl b/src/views/install/index.tpl index bb3850fafe..9c86dc073f 100644 --- a/src/views/install/index.tpl +++ b/src/views/install/index.tpl @@ -44,35 +44,39 @@
-