From f906fb4b1f2809d78a18c21e9d0dedf3a8e69cda Mon Sep 17 00:00:00 2001 From: "johan.lachenal" Date: Wed, 4 Jan 2023 00:25:44 +0100 Subject: [PATCH] ajout des bons chemins --- WEB/Config/Config.php | 1 + WEB/server.js | 6 ++++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/WEB/Config/Config.php b/WEB/Config/Config.php index 15210945..e422dc44 100644 --- a/WEB/Config/Config.php +++ b/WEB/Config/Config.php @@ -41,4 +41,5 @@ $vues['doubleElement'] = 'View/src/pages/Enigme/DoubleElement.html'; //Error $vues['erreur'] = 'View/src/pages/Erreur.php'; + $error = ""; diff --git a/WEB/server.js b/WEB/server.js index 7cc8d901..4bfddd3f 100644 --- a/WEB/server.js +++ b/WEB/server.js @@ -1,6 +1,8 @@ //const io = require('socket.io')('http://localhost:3000'); -const express = require('express'); -const socketIO = require('socket.io');//('http://82.165.180.114:3000'); +//modules +module = '/usr/local/lib/node_modules/'; +const express = require(module + "express"); +const socketIO = require(module +"socket.io");//('http://82.165.180.114:3000'); const app = express(); const server = app.listen(3000); const io=socketIO(server);