Answer the question
In order to leave comments, you need to log in
How to run symfony commands from cron?
There is a website, the main core is Bitrix. Now we are adding services to it, incl. screwed Project\Console\Application from symfony.
The run file contains the script to run the command. When running the command from the site directory
php run kafka:master-products:from-bus-to-queue
The command is executed kafka:master-products:from-bus-to-queue
But if the command is run from the server root
php /home/bitrix/ext_www/standName/run kafka:master-products:from-bus-to-queue
There are no commands defined in the "kafka" namespace.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question