When working locally on my Laravel + Bun + Stripe stack for AI Email Builder, I used to open 4 terminal tabs every time:
bun run dev for frontend
-
php artisan queue:work
for jobs -
php artisan schedule:work
for cron - and Stripe listener for webhooks
It worked⦠but it was annoying.
So I wrote a tiny Bash script to spin everything up in one command π
#!/bin/bash
BASE=$PWD
DEV_CMD="(cd $BASE && bun run dev)"
QUEUE_CMD="(cd $BASE && php artisan queue:work)"
SCHEDULE_CMD="(cd $BASE && php artisan schedule:work)"
STRIPE_CMD="(cd $BASE && zsh listen-stripe.sh)"
npx concurrently \
-n dev,queue,schedule,stripe \
-c green,blue,magenta,yellow \
"$DEV_CMD" \
"$QUEUE_CMD" \
"$SCHEDULE_CMD" \
"$STRIPE_CMD"
Now I just run: ./dev.sh
And everything starts together β clean, color-coded, and fast π
This little script made my daily development workflow for Email Builder so much smoother.
Feel free to tweak it to match your stack too.
Top comments (0)