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
Percy
Percy2y ago
Project ID: 38a04f85-8470-4aa5-8606-ed84d6c96949
renatoalvarez
renatoalvarezOP2y ago
38a04f85-8470-4aa5-8606-ed84d6c96949 any help?
Brody
Brody2y ago
try this as the start command
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 &
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 &
renatoalvarez
renatoalvarezOP2y ago
Thanks, Im having the same isuue, server is not started
Brody
Brody2y ago
show me the last dozen lines of the build log
njoguamos
njoguamos2y ago
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.
Want results from more Discord servers?
Add your server