mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-11-23 23:06:54 +00:00
add browser-readable address and some styling to log.
This commit is contained in:
1 parent
9f6bc10369
commit
31cf8b7d28
1 file changed
+8
-1
@@ -7,6 +7,13 @@ DB.connect(config).then(()=>{
|
||||
// before launching server
|
||||
const PORT = process.env.PORT || config.get('web_port') || 8000;
|
||||
server.app.listen(PORT, ()=>{
|
||||
console.log(`server on port: ${PORT}`);
|
||||
const reset = '\x1b[0m'; // Reset to default style
|
||||
const bright = '\x1b[1m'; // Bright (bold) style
|
||||
const cyan = '\x1b[36m'; // Cyan color
|
||||
const underline = '\x1b[4m'; // Underlined style
|
||||
|
||||
console.log(`\n\tserver on port: ${PORT}`);
|
||||
console.log(`\t${underline}${bright}${cyan}Open in browser: http://localhost:${PORT}${reset}`)
|
||||
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user