mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08: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:
committed by
Jessica Janiuk
parent
50b3e9f4c4
commit
00b87a7c26
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user