Version 0.2.0 - PREVERSION - Ajout de certaines fonctionnalités
All checks were successful
Neutral/pipeline/head This commit looks good

This commit is contained in:
Raphix
2023-11-02 18:16:15 +01:00
parent a3e0f25968
commit 9c1074de80
17 changed files with 888 additions and 18 deletions

11
bin/www
View File

@ -8,15 +8,19 @@ var {LogType} = require("loguix")
var { __glob } = require("./global-variables")
log.setup(__glob.LOGS)
const wlog = new LogType("Web")
const wlog = new LogType("Serveur")
if(process.env.DEV ) {
wlog.log("MODE DEVELOPEMENT ACTIF")
}
wlog.step.init("start_server", "Démarrage du serveur Express JS")
var app = require('../main');
var debug = require('debug')('neutral:server');
var http = require('http');
var config = require("./config")
var serverIO = require("./server")
/**
* Get port from environment and store in Express.
@ -30,6 +34,7 @@ app.set('port', port);
*/
var server = http.createServer(app);
serverIO.serverIO(server)
/**
* Listen on provided port, on all network interfaces.