From 03402e7a55756ce906555bfd51b3382a28bf7ced Mon Sep 17 00:00:00 2001 From: coderaiser Date: Tue, 7 Apr 2015 10:27:20 -0400 Subject: [PATCH] feature(cloudcmd) dword, edward: add root --- lib/cloudcmd.js | 8 +++++--- lib/server/root.js | 5 +---- package.json | 5 ++--- 3 files changed, 8 insertions(+), 10 deletions(-) diff --git a/lib/cloudcmd.js b/lib/cloudcmd.js index 36759c8b..dcfddc38 100644 --- a/lib/cloudcmd.js +++ b/lib/cloudcmd.js @@ -60,11 +60,13 @@ config.socket(socket); edward.listen(socket, { - size: size + size: size, + root: config('root') }); dword.listen(socket, { - size: size + size: size, + root: config('root') }); }; @@ -90,7 +92,7 @@ config(), restafary({ prefix : cloudfunc.apiURL + '/fs', - root : config('root') || '/' + root : config('root') }), rest, route, diff --git a/lib/server/root.js b/lib/server/root.js index 8668e57a..95f50d05 100644 --- a/lib/server/root.js +++ b/lib/server/root.js @@ -4,8 +4,7 @@ var DIR = './', path = require('path'), config = require(DIR + 'config'), - mellow = require('mellow'), - log = require('debug')('cloudcmd-root'); + mellow = require('mellow'); module.exports = function(dir) { var root = config('root') || '/'; @@ -18,8 +17,6 @@ else dir = path.join(root, dir); - log(dir); - return dir; }; })(); diff --git a/package.json b/package.json index 1aa3ba8f..1d653880 100644 --- a/package.json +++ b/package.json @@ -33,9 +33,8 @@ "checkup": "~1.0.3", "console-io": "~2.2.0", "copymitter": "~1.6.0", - "debug": "~2.1.3", - "dword": "~1.3.2", - "edward": "~1.4.0", + "dword": "~1.4.0", + "edward": "~1.5.0", "execon": "~1.1.0", "express": "~4.12.0", "faust": "~1.0.0",