💚 new CD test with different server instance
continuous-integration/drone/push Build is passing Details

deployement
Vincent ASTOLFI 11 months ago
parent 43a6b3c2e2
commit b0f5a9b129

@ -1,9 +1,20 @@
const express = require("express");
const app = express();
const http = require("http").Server(app);
const io = require("socket.io")(http);
const { createServer } = require("http");
const { Server } = require("socket.io");
const port = 8081;
const httpServer = createServer();
const io = new Server(httpServer, {
cors: {
origin: "https://codefirst.iut.uca.fr/containers/vincentastolfi-maettleship",
// or with an array of origins
// origin: ["https://my-frontend.com", "https://my-other-frontend.com", "http://localhost:3000"],
credentials: true
}
});
app.use(express.static("public"));
http.listen(port, () => {

Loading…
Cancel
Save