fixup! refacto(scipts): reorganized & support dev server

This commit is contained in:
Florent Chehab 2020-04-20 10:34:41 +02:00
parent 7f574cea5a
commit 033d01e1cf
No known key found for this signature in database
GPG Key ID: 9A0CE018889EA246

View File

@ -20,7 +20,8 @@ function startBackendServer(port) {
var s_whiteboard = require("./s_whiteboard.js"); var s_whiteboard = require("./s_whiteboard.js");
var app = express(); 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); var server = require('http').Server(app);
server.listen(port); server.listen(port);
var io = require('socket.io')(server, {path: "/ws-api", }); var io = require('socket.io')(server, {path: "/ws-api", });