mirror of
https://github.com/zadam/trilium.git
synced 2025-11-04 13:39:01 +01:00
chore(server): display startup info right at the beginning
This commit is contained in:
parent
2f6d81ce2c
commit
fc78f68fa7
@ -24,6 +24,8 @@ const LOGO = `\
|
|||||||
`;
|
`;
|
||||||
|
|
||||||
export default async function startTriliumServer() {
|
export default async function startTriliumServer() {
|
||||||
|
await displayStartupMessage();
|
||||||
|
|
||||||
// setup basic error handling even before requiring dependencies, since those can produce errors as well
|
// setup basic error handling even before requiring dependencies, since those can produce errors as well
|
||||||
process.on("unhandledRejection", (error: Error) => {
|
process.on("unhandledRejection", (error: Error) => {
|
||||||
// this makes sure that stacktrace of failed promise is printed out
|
// this makes sure that stacktrace of failed promise is printed out
|
||||||
@ -71,8 +73,6 @@ export default async function startTriliumServer() {
|
|||||||
(await import("electron")).app.requestSingleInstanceLock();
|
(await import("electron")).app.requestSingleInstanceLock();
|
||||||
}
|
}
|
||||||
|
|
||||||
await displayStartupMessage();
|
|
||||||
|
|
||||||
const httpServer = startHttpServer(app);
|
const httpServer = startHttpServer(app);
|
||||||
|
|
||||||
const sessionParser = (await import("./routes/session_parser.js")).default;
|
const sessionParser = (await import("./routes/session_parser.js")).default;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user