ports
This commit is contained in:
@@ -148,8 +148,10 @@ console.log("Works with FluidNc Base");
|
||||
const port = Number(process.env.PORT);
|
||||
const listenPort = Number.isInteger(port) ? port : 2095;
|
||||
|
||||
console.log("Starting server on port: " + listenPort.toString());
|
||||
|
||||
server.listen(listenPort);
|
||||
console.log("Listen on Port: https://localhost:" + port.toString()+ "/")
|
||||
console.log("Listen on Port: https://localhost:" + listenPort.toString()+ "/")
|
||||
|
||||
|
||||
|
||||
@@ -197,7 +199,8 @@ const infoServer = https.createServer(httpsOptions, (req, res) => {
|
||||
|
||||
|
||||
const InfPort = Number(process.env.PORT);
|
||||
const listenInfoPort = Number.isInteger(InfPort) ? InfPort : 2095;
|
||||
const listenInfoPort = Number.isInteger(InfPort) ? InfPort : 2098;
|
||||
|
||||
console.log("Starting info server on port: " + listenInfoPort.toString());
|
||||
infoServer.listen(listenInfoPort);
|
||||
console.log("Info server listening on https://localhost:"+ listenInfoPort.toString() + "/");
|
||||
|
||||
Reference in New Issue
Block a user