From ab9cb53cf8c7a0e56bc3236bd484bc673cf3a7ed Mon Sep 17 00:00:00 2001 From: nightwing Date: Wed, 25 Feb 2015 10:47:02 +0000 Subject: [PATCH] fix makestatic --- scripts/makestatic.js | 31 ++++++++++++------------------- 1 file changed, 12 insertions(+), 19 deletions(-) diff --git a/scripts/makestatic.js b/scripts/makestatic.js index 1da251b8..d640ac78 100755 --- a/scripts/makestatic.js +++ b/scripts/makestatic.js @@ -72,15 +72,21 @@ function main(config, settings, options, callback) { }) .concat({ consumes: [], - provides: ["cdn.build", "db"], + provides: ["cdn.build", "db", "health"], setup: function(options, imports, register) { - register(null, { "cdn.build": {}, "db": { - "Vfs": { - findAllAndPurge: function(maxVfsAge, callback) { - callback(null, [{}]); + register(null, { + "cdn.build": {}, + "db": { + "Vfs": { + findAllAndPurge: function(maxVfsAge, callback) { + callback(null, [{}]); + } } + }, + "health": { + addCheck: function() {} } - } }); + }); } }) .filter(function(p) { @@ -88,19 +94,6 @@ function main(config, settings, options, callback) { return !path || path.indexOf("c9.db.redis/redis") == -1 && path.indexOf("c9.static/build") == -1 && path.indexOf("c9.api/health") == -1; - }) - .concat({ - consumes: [], - provides: ["cdn.build", "db", "health"], - setup: function(options, imports, register) { - register(null, { - "cdn.build": {}, - "db": {}, - "health": { - addCheck: function() {} - } - }); - } });