How can I run a function after adonis5 startup #1551
-
Hi, I'm new to adonis, I see the question here , but I still don't know how to do it , can some one help me out? An example is better. |
Beta Was this translation helpful? Give feedback.
Answered by
thetutlage
Sep 2, 2020
Replies: 1 comment 3 replies
-
@bstsnail. You can do it using a preload file.
|
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
RomainLanz
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@bstsnail. You can do it using a preload file.
node ace make:prldfile <name>
web
environment or all the environment. DO NOT LEAVE THE PROMPT SELECTION EMPTY.console.log
inside the newly created file to check it is getting loaded by AdonisJS automatically.