diff options
Diffstat (limited to 'server.ts')
-rw-r--r-- | server.ts | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/server.ts b/server.ts new file mode 100644 index 0000000..f334636 --- /dev/null +++ b/server.ts | |||
@@ -0,0 +1,19 @@ | |||
1 | /* | ||
2 | |-------------------------------------------------------------------------- | ||
3 | | AdonisJs Server | ||
4 | |-------------------------------------------------------------------------- | ||
5 | | | ||
6 | | The contents in this file is meant to bootstrap the AdonisJs application | ||
7 | | and start the HTTP server to accept incoming connections. You must avoid | ||
8 | | making this file dirty and instead make use of `lifecycle hooks` provided | ||
9 | | by AdonisJs service providers for custom code. | ||
10 | | | ||
11 | */ | ||
12 | |||
13 | import 'reflect-metadata'; | ||
14 | import sourceMapSupport from 'source-map-support'; | ||
15 | import { Ignitor } from '@adonisjs/core/build/standalone'; | ||
16 | |||
17 | sourceMapSupport.install({ handleUncaughtExceptions: false }); | ||
18 | |||
19 | new Ignitor(__dirname).httpServer().start(); | ||