diff options
author | 2022-07-25 08:16:50 +0530 | |
---|---|---|
committer | 2022-07-25 08:17:10 +0530 | |
commit | cf282aa351cbc58691fb1b2fb4764830247cdbe8 (patch) | |
tree | 1a6ac4c9abd8b3de9d358016a5065da86cdd8510 /src/internal-server/start.ts | |
parent | 6.0.1-nightly.3 [skip ci] (diff) | |
download | ferdium-app-cf282aa351cbc58691fb1b2fb4764830247cdbe8.tar.gz ferdium-app-cf282aa351cbc58691fb1b2fb4764830247cdbe8.tar.zst ferdium-app-cf282aa351cbc58691fb1b2fb4764830247cdbe8.zip |
eslint needs to be executed at the top-level to actually workv6.0.1-nightly.3
Diffstat (limited to 'src/internal-server/start.ts')
-rw-r--r-- | src/internal-server/start.ts | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/src/internal-server/start.ts b/src/internal-server/start.ts index ae28e3313..f5e1953e7 100644 --- a/src/internal-server/start.ts +++ b/src/internal-server/start.ts | |||
@@ -63,12 +63,15 @@ export const server = async (userPath: string, port: number, token: string) => { | |||
63 | returned = true; | 63 | returned = true; |
64 | } | 64 | } |
65 | }); | 65 | }); |
66 | new Ignitor(fold).appRoot(__dirname).fireHttpServer().catch((error) => { | 66 | new Ignitor(fold) |
67 | console.error(error); | 67 | .appRoot(__dirname) |
68 | if (!returned) { | 68 | .fireHttpServer() |
69 | returned = true; | 69 | .catch(error => { |
70 | reject(error); | 70 | console.error(error); |
71 | } | 71 | if (!returned) { |
72 | }); | 72 | returned = true; |
73 | reject(error); | ||
74 | } | ||
75 | }); | ||
73 | }); | 76 | }); |
74 | }; | 77 | }; |