E
E
Emil Rakhmatullin2019-12-18 16:05:27
Laravel
Emil Rakhmatullin, 2019-12-18 16:05:27

Do you also need to run queues on the hosting through the terminal?

For queues, I run the command on OpenServer php artisan queue:work.
Do you need hosting too? Or will it happen automatically (similar to php artisan serve)?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Antonio Solo, 2019-12-18
@solotony

php artisan serveis to start the debug web server. on hosting you will have a full-fledged Apache.
you will be able to run a php artisan queue:workregular (virtual) hosting only in the "one task" mode, but it will most likely not work, since all hostings have a limit on the process time, if there are not very many tasks, then it is quite possible to put them in cron (schedule) unless of course the schedule is not paranoid limited. for one project, I slightly patched the lark (queue:work command), and instead of one task, I executed all the tasks that were in the queue. ran according to kroner according to the schedule. php artisan queue:work --daemonphp artisan queue:listen

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question