mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 10:45:47 +00:00
feature(cloudcmd) dword, edward: add root
This commit is contained in:
parent
7c46655843
commit
03402e7a55
3 changed files with 8 additions and 10 deletions
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
};
|
||||
})();
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue