mirror of
https://github.com/C4illin/ConvertX.git
synced 2026-03-03 00:37:00 +00:00
fix: allow dynamic server port via environment variable (#530)
This commit is contained in:
@@ -65,7 +65,7 @@ if (process.env.NODE_ENV !== "production") {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
app.listen(3000);
|
app.listen(process.env.PORT || 3000);
|
||||||
|
|
||||||
console.log(`🦊 Elysia is running at http://${app.server?.hostname}:${app.server?.port}${WEBROOT}`);
|
console.log(`🦊 Elysia is running at http://${app.server?.hostname}:${app.server?.port}${WEBROOT}`);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user