Schedule the job(s):
While the above command works, it does not run the scheduler and the jobs in the background. To do this, you can use pm2, a popular process manager for Node.js.
First you need to install locally the Foal CLI:
Then you can run the scheduler like this:
If everything works fine, you should see your scheduler running with this command:
To display the logs of the scheduler and the jobs, use this one:
Eventually, to stop the scheduler and the jobs, you can use this command: