D
D
driverx182019-10-26 18:24:15
Task Schedulers
driverx18, 2019-10-26 18:24:15

How to specify the path to artisan in crontab if Laravel is spinning in docker?

I made a command that I want to run in the crown. Doka Laravel says to add the following to the cron tab:

* * * * * php /path/to/artisan schedule:run >>/dev/null 2>&1

however, which one should I put in /path/to/artisan if it's in a docker container?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ilya, 2019-10-26
@driverx18

* * * * * docker exec container php /path/to/artisan/in/container/artisan schedule:run
something like...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question