Configuration
Ticaga retrieves 10 emails every 2 minutes using a non-overlapping scheduling mechanism. This approach ensures that if an IMAP server experiences delayed response times, subsequent scheduled runs are skipped rather than initiating concurrent jobs. This design prevents excessive CPU load and eliminates the risk of duplicate email processing.
Connect via SSH using the username established during Ticaga installation. Our documentation uses ticaga
or demo
as example usernames for illustrative purposes. For security best practices, we recommend using a unique username, though the final choice is yours.
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.
No comments to display
No comments to display