Post requisite after phpredis PHP extension install
I want my Laravel queue to use phpredis PHP extension for job queuing.
The server administrator will install the PHP extension for my application.
Are there anything alse I need to do in my application after the extension will be installed? I am planning to use the QUEUE_CONNECTION=database driver.
p.s. I am using cloudways.com for the hosting, I do have access to the command line. In my local development I am also using the QUEUE_CONNECTION=database and always running the que:work command while developing, that works great!
Hmm.., I have done that and I see that the jobs are being saved into the db table, but how do I setup the que worker? When I run the command que:work in cli, the jobs do get processed, but when I closet the cli, the worker stops working.
How do I keep the worker working :) ? I believe I do need the Predis or phpredis PHP extension for the worker to be working, right?
@silencebringer , do you mean I need to create a command which will run the queue:work command as a cron job, periodically?
And when I push some updates to the application I will need to run the queue:restart command after?
Do I understand that correctly? By researching little more, I was reading that I will need to install the supervisor. Me personally I would prefer the cron job instead installing additional packages.
I'll learn more about the daemon and if I have access to set that up in Cloudway.
I got it working with Redis and Supervisor, but I believe the daemon option would be a cleaner way to go. Plus the Predis package which I am using, I read, is not maintained any longer.