🐊🏋 Checkpoint
./server.js:1062301/187
This commit is contained in:
1 parent
aa38cfdf44
commit
180d799c09
1 file changed
+3
-1
@@ -2,7 +2,8 @@ const path = require("path");
|
|||||||
|
|
||||||
// Require the fastify framework and instantiate it
|
// Require the fastify framework and instantiate it
|
||||||
const fastify = require("fastify")({
|
const fastify = require("fastify")({
|
||||||
logger: true
|
// set this to true for detailed logging:
|
||||||
|
logger: false
|
||||||
});
|
});
|
||||||
|
|
||||||
// Setup our static files
|
// Setup our static files
|
||||||
@@ -82,5 +83,6 @@ fastify.listen(process.env.PORT, function(err, address) {
|
|||||||
fastify.log.error(err);
|
fastify.log.error(err);
|
||||||
process.exit(1);
|
process.exit(1);
|
||||||
}
|
}
|
||||||
|
console.log(`Your app is listening on ${address}`);
|
||||||
fastify.log.info(`server listening on ${address}`);
|
fastify.log.info(`server listening on ${address}`);
|
||||||
});
|
});
|
||||||
Reference in new issue
Block a user