Laravel queue work does'nt work
Hi, Im trying to configure php artisan queue:work command to listen scheduled tasks but I didn't had success.
I tried to change start command from config whitout sucess:
perl /assets/prestart.pl /assets/nginx.template.conf
/nginx.conf && (php-fpm -y /assets/php-fpm.conf & nginx -c
/nginx.conf) && php artisan queue:retry && php artisan queue:work
In this case app is launched but is not listen to works.
Only artisan commands seem to work but server is not started:
php artisan queue:retry && php artisan queue:work
I tried to create a nixpacks.json file with artisan commands in start phase but doesnt work, two start commands are present and the deploy crashes.
If I run queue:work in any phase the command run correctly but the deploy is not finished.
I dont know how to achieve thar. Any idea? Thanks
6 Replies
Project ID:
38a04f85-8470-4aa5-8606-ed84d6c96949
38a04f85-8470-4aa5-8606-ed84d6c96949
any help?
try this as the start command
Thanks, Im having the same isuue, server is not started
show me the last dozen lines of the build log
You need to create multiple instances of your application, each with a single startup command. This give you the benefits of viewing logs for each instance.