Equivalent of Ignitor Hooks in Adonis 5? #2188
-
Is there an equivalent to Ignitor Hooks in Adonis 5? I would like to run some code when the server is started. const { hooks } = require('@adonisjs/ignitor')
hooks.after.httpServer(() => {
// ...
}) |
Beta Was this translation helpful? Give feedback.
Answered by
thetutlage
Jan 30, 2021
Replies: 1 comment 1 reply
-
You can use the provider. There is a |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
LeCoupa
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can use the provider. There is a
start
method that runs after the http server is started