G
G
gitdev2018-11-12 17:39:43
symfony
gitdev, 2018-11-12 17:39:43

How to start cron execution for console command in Symofny 4?

I run the command in the console:
* * 4 * * php /var/www/docker/metrag/bin/console app:import-realties
Writes that the command was not found:

Command 'bin' not found, maybe you mean:
Command 'bino' from package 'bino' (universe)
Command 'din' from package 'din' (universe)
Command 'dbin' from package 'dbmix' (universe)
Command 'win' from package 'wily' (universe)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
F
Flying, 2018-11-12
@gitdev

Specify the full path to the php executable, for example, /usr/local/phpor where you have it located.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question