0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-24 16:22:44 +00:00

Merge pull request #1617 from blitzher/master

Moved server start log to `app.listen` callback
This commit is contained in:
Trevor Buckner
2021-09-13 22:44:15 -04:00
committed by GitHub

View File

@@ -282,5 +282,6 @@ app.use((err, req, res, next)=>{
//^=====--------------------------------------=====^//
const PORT = process.env.PORT || config.get('web_port') || 8000;
app.listen(PORT);
console.log(`server on port:${PORT}`);
app.listen(PORT, ()=>{
console.log(`server on port:${PORT}`);
});