tethys.backend/server.ts

20 lines
703 B
TypeScript
Raw Permalink Normal View History

2023-03-03 15:54:28 +00:00
/*
|--------------------------------------------------------------------------
| AdonisJs Server
|--------------------------------------------------------------------------
|
| The contents in this file is meant to bootstrap the AdonisJs application
| and start the HTTP server to accept incoming connections. You must avoid
| making this file dirty and instead make use of `lifecycle hooks` provided
| by AdonisJs service providers for custom code.
|
*/
2023-03-17 15:13:37 +00:00
import 'reflect-metadata';
import sourceMapSupport from 'source-map-support';
import { Ignitor } from '@adonisjs/core/build/standalone';
2023-03-03 15:54:28 +00:00
2023-03-17 15:13:37 +00:00
sourceMapSupport.install({ handleUncaughtExceptions: false });
2023-03-03 15:54:28 +00:00
2023-03-17 15:13:37 +00:00
new Ignitor(__dirname).httpServer().start();