Skip to content
Discussion options

You must be logged in to vote

Change your server.ts to something like this

import 'reflect-metadata'
import sourceMapSupport from 'source-map-support'
import { Ignitor } from '@adonisjs/core/build/src/Ignitor'

sourceMapSupport.install({ handleUncaughtExceptions: false })

const server = new Ignitor(__dirname)
  .httpServer()

server.start()
  .catch(console.error)

// Without it process won't die in container
process.on('SIGINT', () => {
  server.kill(10)
})

https://mcsneaky.ap3k.pro/posts/adonis-v5-docker-compose-templates/#preparations

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@mkevison
Comment options

Answer selected by mkevison
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants