Skip to content

Cannot run multiple dev servers #17324

Description

@rburgst

Astro Info

Astro                    v7.0.6
Node                     v24.11.0
System                   macOS (arm64)
Package Manager          pnpm
Output                   server
Adapter                  @astrojs/node
Integrations             @astrojs/preact

If this issue only occurs in one browser, which browser is a problem?

No response

Describe the Bug

when trying to run the dev server a 2nd time (i have one turborepo monorepo dev server running, but want to run another dev server in debug mode), I get

Another astro dev server is already running.

  URL:  http://localhost:4330
  PID:  85088

Run `astro dev stop` to stop it, or use `astro dev --force` to replace it.
  • --force has no effect
  • commandline in package.json: astro dev --force --port 4331 --host

What's the expected result?

I should be able to run multiple dev servers

Link to Minimal Reproducible Example

https://stackblitz.com/github/withastro/astro/tree/latest/examples/basics?file=README.md&on=stackblitz

Participation

  • I am willing to submit a pull request for this issue.

Metadata

Metadata

Assignees

Labels

- P2: has workaroundAn edge case that only affects very specific usage, but has a trivial workaround (priority)semver: minorChange triggers a `minor` release

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions