This is the first time I want to run cron for indexation every hour. I found multiple tutorials but none of them give me what I'm looking for or skip some steps.
OVH as a web hosting, Magento 2.3.
Magento Stack Exchange is a question and answer site for users of the Magento e-Commerce platform. It only takes a minute to sign up.Sign up to join this community
Please refer to the below documentation of OVh Web hosting to set automated tasks.
Example: Add the below code in your file you have set for schedule task:
//Assuming your file is in the Magento root folder. <?php system('<path to php> <path to root>/bin/magento indexer:reindex') ?> OR <?php $command = 'php /path-to-magento-root-directory/bin/magento indexer:reindex'; echo '<pre>' . shell_exec($command) . '</pre>'; ?>
Also, check the below post if it is helpful!
More, take a look at Magento documentation to Configure and run cron
Hope this helps!