Add correct port to starting log

This prints the current listening port in the case it is a non default one
pull/1/head
Angel 4 years ago committed by GitHub
parent 2ce86c6ee1
commit ff69e9e00a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1,6 +1,7 @@
import app from './app.js'; import app from './app.js';
const port = process.env.PORT || 5000;
app.listen(process.env.PORT || 5000, () => { app.listen(port, () => {
console.clear(); console.clear();
console.info(`API Running on: 5000 ============================`); console.info(`API Running on: ${port} ============================`);
}); });

Loading…
Cancel
Save