Skip to content

build: use different default port for dev-app#67345

Open
JeanMeche wants to merge 1 commit intoangular:mainfrom
JeanMeche:dev-app-port
Open

build: use different default port for dev-app#67345
JeanMeche wants to merge 1 commit intoangular:mainfrom
JeanMeche:dev-app-port

Conversation

@JeanMeche
Copy link
Member

Same as ADEV, currently the CLI prompts for another port if 4200 is busy but the toolchain doesn't support prompts.

By defaulting to 4201 we avoid regular CLI apps from preventing to run the dev-app

Same as ADEV, currently the CLI prompts for another port if 4200 is busy but the toolchain doesn't support prompts.

By defaulting to 4201 we avoid regular CLI apps from preventing to run the dev-app
@angular-robot angular-robot bot added the area: build & ci Related the build and CI infrastructure of the project label Feb 26, 2026
@ngbot ngbot bot added this to the Backlog milestone Feb 26, 2026
project_name = "dev-app",
serve_args = [
"--port",
"4201",
Copy link
Contributor

Choose a reason for hiding this comment

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

It’s something trivial, but dev-app could be 4202 ? , if I use 4201 for adev, I’d assume it would throw an error

Copy link
Member Author

Choose a reason for hiding this comment

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

It's quite unlikely to run both at the same time I'd say.

Copy link
Contributor

@alan-agius4 alan-agius4 Feb 27, 2026

Choose a reason for hiding this comment

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

With Bazel it is not possible to run two commands concurrently.

Copy link
Member

@josephperrott josephperrott left a comment

Choose a reason for hiding this comment

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

LGTM

@JeanMeche JeanMeche added action: merge The PR is ready for merge by the caretaker target: patch This PR is targeted for the next patch release labels Feb 27, 2026
ng_config = ":ng_config",
node_modules = ":node_modules",
project_name = "dev-app",
serve_args = [
Copy link
Contributor

Choose a reason for hiding this comment

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

NIT: since this is constant, you can place it in angular.json.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

action: merge The PR is ready for merge by the caretaker area: build & ci Related the build and CI infrastructure of the project target: patch This PR is targeted for the next patch release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants