Skip to content

[Adonis 4.1] App console.log still printing after break app execution #1410

Answered by wemersonrv
wemersonrv asked this question in Help
Discussion options

You must be logged in to vote

Make new tests here, and every adonis cli command i run, even if i run only adonis to show all cli options, it calls the register and boot from all servide providers...

Well, i need to add these providers to app.. this is a fact. But only when the app is running, not when i just run a cli command.

So, there is a way to check check for specific CLI commands i want to accept servicce providers register and boot executions and others no?

Example: If i run a new migration, service providers ran the boot method and i don't want that. But, if i ran a custom command i created to make some admin scheduled tasks in background, i need the services registered (and their singleton instances created a…

Replies: 2 comments 5 replies

Comment options

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

Comment options

You must be logged in to vote
4 replies
@thetutlage
Comment options

@wemersonrv
Comment options

@thetutlage
Comment options

@wemersonrv
Comment options

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