Set-up
Ticaga pulls 10 emails every 2 minutes without overlapping, this ensures that if an IMAP server is slow to respond, the next schedule run skips instead of starting another job and causing a high cpu load. It also prevents duplication of emails.
How do we get set-up?
You need to log into the username on SSH which you created when installing Ticaga. In our documentation we use ticaga or demo, depending on which guide you're following, we hope you picked your own for security reasons but that's up to you.
sudo su ticaga
Now we want to set-up the cronjob for Laravel's scheduler:
export EDITOR=nano;
crontab -e
First we set the editor to nano, this is the basic editor, you can use vi but in our option Nano is better.
Then we edit the crontab.
Paste in the following cronjob:
* * * * * cd /var/www/ticaga && php artisan schedule:run >> /dev/null 2>&1
Ctrl + X and Y to save and close the editor.
To check that it's set to run, you can run the following command:
crontab -l
It'll output the above.