Skip to content

Instantly share code, notes, and snippets.

@dayitv89
Last active August 18, 2022 23:27
Show Gist options
  • Save dayitv89/4b1c6a759b40fe4aeb00234a4a6606a6 to your computer and use it in GitHub Desktop.
Save dayitv89/4b1c6a759b40fe4aeb00234a4a6606a6 to your computer and use it in GitHub Desktop.
AdonisJS-5 direct run node index.js instead of server.ts as node ace serve
/*
|--------------------------------------------------------------------------
| AdonisJs Server
|--------------------------------------------------------------------------
|
| node adonis5Index.js
|
*/
require('reflect-metadata')
require('source-map-support').install({ handleUncaughtExceptions: false })
require('@adonisjs/assembler/build/register')
const { Ignitor } = require('@adonisjs/core/build/standalone')
new Ignitor(__dirname)
.httpServer()
.start()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment