2023-07-29 21:50:42 +00:00
|
|
|
import { app } from "./app";
|
|
|
|
import { logger } from "./logger";
|
2023-07-29 18:10:00 +00:00
|
|
|
|
2023-07-29 21:50:42 +00:00
|
|
|
const port = app.get("port");
|
|
|
|
const host = app.get("host");
|
2023-07-29 18:10:00 +00:00
|
|
|
|
2023-07-29 21:50:42 +00:00
|
|
|
process.on("unhandledRejection", (reason) =>
|
|
|
|
logger.error("Unhandled Rejection %O", reason),
|
|
|
|
);
|
2023-07-29 18:10:00 +00:00
|
|
|
|
|
|
|
app.listen(port).then(() => {
|
2023-07-29 21:50:42 +00:00
|
|
|
logger.info(`Feathers app listening on http://${host}:${port}`);
|
|
|
|
});
|