server.ts 698 B

12345678910111213141516171819
  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. import 'reflect-metadata'
  13. import sourceMapSupport from 'source-map-support'
  14. import { Ignitor } from '@adonisjs/core/build/standalone'
  15. sourceMapSupport.install({ handleUncaughtExceptions: false })
  16. new Ignitor(__dirname).httpServer().start()