mirror of
https://github.com/MercuryWorkshop/scramjet.git
synced 2025-05-13 14:30:02 -04:00
add message to show what port the server is running on
This commit is contained in:
parent
dc90451ad4
commit
96103460b8
1 changed files with 5 additions and 1 deletions
|
@ -77,10 +77,14 @@ fastify.register(fastifyStatic, {
|
||||||
prefix: "/baremod/",
|
prefix: "/baremod/",
|
||||||
decorateReply: false,
|
decorateReply: false,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
const PORT = process.env.PORT || 1337;
|
||||||
|
|
||||||
fastify.listen({
|
fastify.listen({
|
||||||
port: process.env.PORT || 1337,
|
port: PORT,
|
||||||
host: "0.0.0.0",
|
host: "0.0.0.0",
|
||||||
});
|
});
|
||||||
|
console.log(`Listening on port ${PORT}`);
|
||||||
|
|
||||||
writeFileSync(
|
writeFileSync(
|
||||||
".git/hooks/pre-commit",
|
".git/hooks/pre-commit",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue