This commit is contained in:
Guillaume Dorce 2024-10-10 23:25:55 +02:00
parent 55d0f86497
commit 72e747084b
1 changed files with 5 additions and 1 deletions

View File

@ -111,6 +111,10 @@ const staticDist = express.static(path.join(path.resolve(), "./public"));
app.use(staticDist);
app.listen(port, () => {
const server = app.listen(port, () => {
console.log(`Server listening on port ${port}`);
});
server.on("error", (err) => {
console.error(err);
});