I am using Magento 2.2.6 with a theme. www.rbhomoeoshop.com The store is using rule to offer x amount of discount on each and every product. There is no condition for discount.
after every 2 or 3 days the discount rule is removed by it self. I have to run a reindex command manually, using ssh.
One of my developer friend gave me a php file with reindex command and set a cron to run that php file twice in a day.
I am getting mail on execution of the cron file but the re-index command is not working. There is no error.
Requesting all to suggest a solution.