Skip to content

chore: fix composer run dev on Windows - #113

Merged
trtajim merged 1 commit into
hscstack:mainfrom
TheTahsinShahriar:chore/windows-dev-compatability-fix
Aug 13, 2026
Merged

chore: fix composer run dev on Windows#113
trtajim merged 1 commit into
hscstack:mainfrom
TheTahsinShahriar:chore/windows-dev-compatability-fix

Conversation

@TheTahsinShahriar

Copy link
Copy Markdown
Member

Summary

\composer run dev\ fails on Windows because \php artisan pail\ requires the \pcntl\ extension, which is Unix-only. Since the script runs with --kill-others, Pail's crash takes down the whole dev stack (server, queue, vite).

Change

  • Added \�in/dev-logs.php: on Windows it keeps the \logs\ slot alive as a no-op sleep loop; on Unix it delegates to \php artisan pail --timeout=0.
  • Updated the \composer.json\ \dev\ script to run \php bin/dev-logs.php\ instead of pail directly.

Why

Concurrently kills the other processes whenever any process exits (even with code 0), so the \logs\ slot must remain running on Windows rather than no-op-and-exit.

Testing

  • \composer run dev\ brings up all four services on Windows: server (8000), queue, logs, vite (5173).

@trtajim trtajim left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok

@trtajim
trtajim merged commit 9b347c6 into hscstack:main Aug 13, 2026
5 checks passed
@TheTahsinShahriar
TheTahsinShahriar deleted the chore/windows-dev-compatability-fix branch August 13, 2026 08:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants