mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-04 21:12:41 +00:00
Moved server start log to app.listen callback
This commit is contained in:
@@ -280,5 +280,6 @@ app.use((err, req, res, next)=>{
|
|||||||
//^=====--------------------------------------=====^//
|
//^=====--------------------------------------=====^//
|
||||||
|
|
||||||
const PORT = process.env.PORT || config.get('web_port') || 8000;
|
const PORT = process.env.PORT || config.get('web_port') || 8000;
|
||||||
app.listen(PORT);
|
app.listen(PORT, () => {
|
||||||
console.log(`server on port:${PORT}`);
|
console.log(`server on port:${PORT}`);
|
||||||
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user