Last active
August 18, 2022 23:27
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
|-------------------------------------------------------------------------- | |
| 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