mirror of
https://framagit.org/JonathanMM/sutom.git
synced 2026-03-14 12:45:46 +01:00
Permettre la surcharge du port via la var d'env SUTOM_PORT
This commit is contained in:
parent
335b42256f
commit
06b89e96de
1 changed files with 2 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue