add message to show what port the server is running on

This commit is contained in:
wearrrrr 2024-09-22 19:57:29 -05:00
parent dc90451ad4
commit 96103460b8

View file

@ -77,10 +77,14 @@ fastify.register(fastifyStatic, {
prefix: "/baremod/",
decorateReply: false,
});
const PORT = process.env.PORT || 1337;
fastify.listen({
port: process.env.PORT || 1337,
port: PORT,
host: "0.0.0.0",
});
console.log(`Listening on port ${PORT}`);
writeFileSync(
".git/hooks/pre-commit",