fixup! refacto(scipts): reorganized & support dev server
This commit is contained in:
parent
7f574cea5a
commit
033d01e1cf
@ -20,7 +20,8 @@ function startBackendServer(port) {
|
||||
var s_whiteboard = require("./s_whiteboard.js");
|
||||
|
||||
var app = express();
|
||||
app.use(express.static(path.join(__dirname, '..', 'public')));
|
||||
app.use(express.static(path.join(__dirname, '..', 'dist')));
|
||||
app.use("/uploads", express.static(path.join(__dirname, '..', 'public', 'uploads')));
|
||||
var server = require('http').Server(app);
|
||||
server.listen(port);
|
||||
var io = require('socket.io')(server, {path: "/ws-api", });
|
||||
|
Loading…
Reference in New Issue
Block a user