Skip to content

fix(cli): clear message when the dev port is already in use - #60

Merged
dbjpanda merged 2 commits into
mainfrom
fix/dev-port-in-use
Oct 13, 2026
Merged

dbjpanda merged 2 commits into
mainfrom
fix/dev-port-in-use

Conversation

@dbjpanda

Copy link
Copy Markdown
Contributor

What changes

I found this while recording a demo of 0.2.2. Another concile dev was already running on port 3000.

Before: The backend tab crashed with a raw Node stack trace (EADDRINUSE ... 127.0.0.1:3000). The app tab still showed UP because it only waits for the port to accept connections, and the other server did. As a result, the app was talking to the wrong backend.

After:

  • concile dev and concile serve print one line: Port 3000 is already in use. Another concile server may still be running. Stop it, or pick another port with --port 3100. They exit with code 1 and show no stack trace.
  • concile dev --run checks the port before opening the tabs. If the port is busy, it prints the same line and stops. This ensures the app can never attach to someone else's server.

Checked

  • New tests: isPortFree detects a held port. The server rejects with the clear message instead of an unhandled error event.
  • Tested by hand with a dummy server on 3000: Plain concile dev and concile dev --run vite in a terminal both print the line and exit 1.
  • CLI suite: 603 pass. The one failure is the existing linux-x64 cross-compile test, which needs a package that is not installed on macOS.

@vercel

vercel Bot commented Oct 12, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
concile Ready Ready Preview Oct 13, 2026 6:24pm UTC

@dbjpanda
dbjpanda enabled auto-merge (squash) October 13, 2026 18:23
@dbjpanda
dbjpanda merged commit 68fc98d into main Oct 13, 2026
6 checks passed
@dbjpanda
dbjpanda deleted the fix/dev-port-in-use branch October 13, 2026 18:28

This branch was successfully deployed

1 active deployment
Preview — 00981f67 Deployed Oct 13, 2026 by vercel[bot]
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.

1 participant