fix: allow dynamic server port via environment variable (#530)
This commit is contained in:
parent
8aa23c75aa
commit
d291f049b8
1 changed files with 1 additions and 1 deletions
|
|
@ -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}`);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue