Change process names again
This commit is contained in:
@@ -20,7 +20,8 @@ import {
|
|||||||
methodParser,
|
methodParser,
|
||||||
} from "./types";
|
} from "./types";
|
||||||
|
|
||||||
process.title = "express-diachron-app";
|
|
||||||
|
|
||||||
|
|
||||||
const app = express();
|
const app = express();
|
||||||
|
|
||||||
@@ -120,6 +121,8 @@ app.use(async (req: ExpressRequest, res: ExpressResponse) => {
|
|||||||
res.status(code).send(result);
|
res.status(code).send(result);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
process.title = `diachron:${cli.listen.port}`;
|
||||||
|
|
||||||
app.listen(cli.listen.port, cli.listen.host, () => {
|
app.listen(cli.listen.port, cli.listen.host, () => {
|
||||||
console.log(`Listening on ${cli.listen.host}:${cli.listen.port}`);
|
console.log(`Listening on ${cli.listen.host}:${cli.listen.port}`);
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user