mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
build: automatically select a random available port when running adev locally (#63740)
Previously we relied on the default port of 4200, but if it was already in use then we would run into issues where the cli provided a prompt which we were unable to respond to. Instead we now request port 0 which will automatically find an available port. PR Close #63740
This commit is contained in:
parent
50b3e9f4c4
commit
00b87a7c26
2 changed files with 5 additions and 1 deletions
|
|
@ -18,7 +18,7 @@ bazel_dep(name = "yq.bzl", version = "0.2.0")
|
|||
bazel_dep(name = "rules_angular")
|
||||
git_override(
|
||||
module_name = "rules_angular",
|
||||
commit = "17eac47ea99057f7473a7d93292e76327c894ed9",
|
||||
commit = "4010ef96de0c46db7764adc2f262258c9de3d718",
|
||||
remote = "https://github.com/devversion/rules_angular.git",
|
||||
)
|
||||
|
||||
|
|
|
|||
|
|
@ -146,6 +146,10 @@ ng_application(
|
|||
ng_config = ":ng_config",
|
||||
node_modules = "//adev:node_modules",
|
||||
project_name = "angular-dev",
|
||||
serve_args = config_based_architect_flags + [
|
||||
"--port",
|
||||
"0",
|
||||
],
|
||||
)
|
||||
|
||||
ng_test(
|
||||
|
|
|
|||
Loading…
Reference in a new issue