I have deployed my app on shared host "Hostgator", I've ssh successfull access, however I can't install supervisor to manage queue processing, the command sudo apt-get install supervisor always return errors, so I have contacted support and I was told that I can't make sudo commands with sharedhost "cloud" plan and I have to move to VPS or dedicated which I can't move to at this time.
My question is : is there any alternative can I use to manage the queue processing without supervisor or another way to go around this ? anybody wen through this and found a solution ?
I was thinking to make a cron job with command php artisan queue:work every morning maybe but is this a good practice ?
Yes but it's not as easy as this solution. I honestly would move to a different host in your situation. There are many options out there that are so much better than Hostgator and will give you this functionality.
However if you want to stay where you are you should use one of the queue solutions before Laravel 5.1, which is to use an outside push queue like IronMQ.
Then you can push to that queue system and it will return it back to your site. If you want to learn more google laravel and ironMQ there are a ton of resources out there as this was the perfered method in Laravel before 5.1 or 5.2, I can't remembner.
Using a cron job is a bad idea. If the queue has an error it will keep trying to process. Then you have a mess.
Thank you guys, However I managed to do that by cron jobs and untill now everything is going fine. I'll consider DigitalOcean or VPS packages on future.
Hello @henrypineda
This is a very old thread, I recommend Laravel forge or ploi to manage supervisor and queue system. You also need at least a VPS, don't waste your time with shared hosting.