1

i'm setting up a cronjob for reindexing Elasticsearch index in shopware, problem is that to execute "php bin/console sw:es:index:populate" in cronjob. please hepl me.

i tried to add service for IndexPopulateCommand however i cant access it from cron

1 Answers1

0

You can already run "php bin/console sw:es:index:populate" with a server-side cronjob. It's not recommended to use the cron-system of shopware for such a long-running task. There is no need for this, because you can already use cli-commands in linux crontab.

mnaczenski
  • 1,508
  • 7
  • 12