build: use different default port for dev-app#67345
Open
JeanMeche wants to merge 1 commit intoangular:mainfrom
Open
build: use different default port for dev-app#67345JeanMeche wants to merge 1 commit intoangular:mainfrom
JeanMeche wants to merge 1 commit intoangular:mainfrom
Conversation
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
SkyZeroZx
reviewed
Feb 26, 2026
| project_name = "dev-app", | ||
| serve_args = [ | ||
| "--port", | ||
| "4201", |
Contributor
There was a problem hiding this comment.
It’s something trivial, but dev-app could be 4202 ? , if I use 4201 for adev, I’d assume it would throw an error
Member
Author
There was a problem hiding this comment.
It's quite unlikely to run both at the same time I'd say.
Contributor
There was a problem hiding this comment.
With Bazel it is not possible to run two commands concurrently.
alan-agius4
approved these changes
Feb 27, 2026
alan-agius4
reviewed
Feb 27, 2026
| ng_config = ":ng_config", | ||
| node_modules = ":node_modules", | ||
| project_name = "dev-app", | ||
| serve_args = [ |
Contributor
There was a problem hiding this comment.
NIT: since this is constant, you can place it in angular.json.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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