Closed QU35T-code closed 4 months ago
Check this : https://docs.adonisjs.com/guides/concepts/application-lifecycle#during-the-console-environment
You need to set options.startApp
Check this : https://docs.adonisjs.com/guides/concepts/application-lifecycle#during-the-console-environment
You need to set
options.startApp
Oh, I missed this, thx @Julien-R44. Now I receive my email but the command doesn't stop in my terminal (as the application is running). My goal is to have a crontab that will run the node ace command at regular intervals, which seems problematic if the application doesn't stop... Do you have any ideas on how to solve this ?
qu35t@local:~/Documents/Archive-ctf$ node ace job:fetch
[.............................]
If your application doesn't stop, then that means there's something being not stopped and that keeps the process alive: a connection to a Database, a setInterval, a setTimeout ....
Please use Github discussions for this as it is not an issue
Package version
@adonisjs/mail@9.2.1
Describe the bug
Hey,
I think I found a bug with using @adonisjs/mail with node ace commands. Here's a classic example to send an e-mail with HTTP that works :
routes.tsx
events_controller.tsx
fetch_events_action.ts
Now, if I want to do exactly the same thing using a node ace command and not an HTTP request, I get an error.
commands/job.ts
fetch_events_action.ts
I got this error :
Reproduction repo
No response