feature(cloudcmd) dword, edward: add root

This commit is contained in:
coderaiser 2015-04-07 10:27:20 -04:00
parent 7c46655843
commit 03402e7a55
3 changed files with 8 additions and 10 deletions

View file

@ -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,

View file

@ -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;
};
})();

View file

@ -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",