New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Run Scheduler with PM2 #3
Comments
I'm not sure if it's the best way to run it, but I added the scheduler to the bootstrap for http before the /*
|--------------------------------------------------------------------------
| Run Scheduler
|--------------------------------------------------------------------------
|
| Run the scheduler on boot of the web sever.
|
*/
const Scheduler = use('Adonis/Addons/Scheduler')
Scheduler.run() |
Did you try to run your process on binary mode?
It should work :) |
Thanks @hoangmy92, that is what I would recommend. Closing for now, feel free to re-open if there are any issues. |
My apologies to piggy-back on an old issue. Just wanted to point out that you would now use the following command instead..
You can also see the above when you go to adonis server directory and enter command -
|
Thanks for the command
and
|
Hi,
can I run adonisjs-scheduler as service with pm2?
or how to run scheduler on application start
regards,
Arwani
The text was updated successfully, but these errors were encountered: