mirror of
https://framagit.org/JonathanMM/sutom.git
synced 2024-04-26 19:40:46 +02:00
Permettre la surcharge du port via la var d'env SUTOM_PORT
This commit is contained in:
parent
335b42256f
commit
06b89e96de
|
@ -3,7 +3,8 @@ import http from "http";
|
|||
import fs from "fs";
|
||||
|
||||
const app = express();
|
||||
const port = 4000;
|
||||
const port = parseInt(String(process.env.SUTOM_PORT), 10) || 4000;
|
||||
|
||||
(async () => {
|
||||
app.use("/", express.static("public/"));
|
||||
app.use("/js", express.static("js/"));
|
||||
|
|
Loading…
Reference in a new issue