New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ConfigManager edward editor using wrong root #254
Comments
@csazku you can't just rename const http = require('http');
const cloudcmd = require('.');
const io = require('socket.io');
const app = require('express')();
const port = 8000;
const {createConfigManager} = cloudcmd;
const server = http.createServer(app);
const socket1 = io.listen(server, {
path: `/root/socket.io`
});
const socket2 = io.listen(server, {
path: `/abc/socket.io`
});
const socket3 = io.listen(server, {
path: `/ccc/socket.io`
});
const configManager1 = createConfigManager();
configManager1('root', '/root');
configManager1('name', 'Cloudcmd test');
const configManager2 = createConfigManager();
configManager2('root', '/');
const configManager3 = createConfigManager();
configManager3('root', '/home');
app.use('/root', cloudcmd({
socket: socket1,
configManager: configManager1,
}));
app.use('/abc', cloudcmd({
socket: socket2,
configManager: configManager2,
}));
app.use('/ccc', cloudcmd({
socket: socket3,
configManager: configManager3,
}));
server.listen(port); Can't set root, without a Is it works for you? |
Sorry about, that I was in a hurry when putting the example together. In my actual live code the sockets are set up properly. |
I get it 🙂, yes there was such a bug, it is fixed with cloudcmd/edward@a72a60c. Landed in edward v11.2.0 🎉. Please reinstall |
It's working now. |
Using multiple prefix/doc root settings with config manager seems to make edward use the wrong doc root on save.
Example code:
Anything I save using any of the prefixes gets saved using the doc root from
configManager2
The text was updated successfully, but these errors were encountered: