Build is not finished by custom BUILD command
I have configured the following command:
NIXPACKS_BUILD_CMD=npm run build && php artisan queue:work
I did this so that I could listen to jobs in a Laravel application. The problem is that when this command is executed, it is blocking app build, so it is not finished. What should I do?
Project ID: 38a04f85-8470-4aa5-8606-ed84d6c96949
7 Replies
Project ID:
38a04f85-8470-4aa5-8606-ed84d6c96949
You might find these helpful:
- Nixpacks build failed. Error No start command could be found. How can i fix that?
- artisan queue
⚠️ experimental feature
Build log:
@renatoalvarez - Your start command should be: php artisan queue:work
Rather than both at once.
it didnt work too 😦
Queue work should be a start command, not a build command.
NIXPACKS_BUILD_CMD=npm run build
NIXPACKS_START_CMD=php artisan queue:work
624 builders minutes