Add listening log

pull/287/head
Amio 2019-06-12 11:04:00 +08:00
rodzic 2013033643
commit 3c2fec4506
1 zmienionych plików z 3 dodań i 1 usunięć

Wyświetl plik

@ -67,7 +67,9 @@ const server = http.createServer(async (req, res) => {
// Auto run
if (require.main === module) {
server.listen(process.env.PORT || 3000)
const port = process.env.PORT || 3000
server.listen(port)
console.log(`Badgen listening on port ${port}`)
}
process.on('unhandledRejection', e => {