Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 21 additions & 9 deletions pipeline/commands/dev.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,15 +96,27 @@ async def dev_command(

# Start mint dev in background
logger.info("Starting mint dev...")
mint_process = await asyncio.create_subprocess_exec(
"mint",
"dev",
"--port",
"3000",
cwd=build_dir,
stdout=asyncio.subprocess.PIPE,
stderr=asyncio.subprocess.PIPE,
)

# Use shell on Windows for .CMD compatibility, keep exec on Unix
if sys.platform == "win32":
# Windows requires shell for .CMD files
mint_process = await asyncio.create_subprocess_shell(
"mint dev --port 3000",
cwd=build_dir,
stdout=asyncio.subprocess.PIPE,
stderr=asyncio.subprocess.PIPE,
)
else:
# Unix systems can use exec directly
mint_process = await asyncio.create_subprocess_exec(
"mint",
"dev",
"--port",
"3000",
cwd=build_dir,
stdout=asyncio.subprocess.PIPE,
stderr=asyncio.subprocess.PIPE,
)

# Start log forwarding tasks
stdout_task = asyncio.create_task(_forward_logs(mint_process.stdout, "mint-stdout"))
Expand Down