Skip to content

Commit

Permalink
fix(@angular-devkit/build-angular): passing port 0 when using serve w…
Browse files Browse the repository at this point in the history
…ill not find a suitable port

At the moment, when passing port `0` it will default to `4200` which is incorrect. `4200` should be used a baseport.
  • Loading branch information
Alan Agius authored and alexeagle committed Mar 19, 2019
1 parent a49d278 commit 20a644e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export class DevServerBuilder implements Builder<DevServerBuilderSchema> {
let first = true;
let opnAddress: string;

return from(checkPort(options.port || 4200, options.host || 'localhost')).pipe(
return from(checkPort(options.port || 0, options.host || 'localhost', 4200)).pipe(
tap((port) => options.port = port),
concatMap(() => this._getBrowserOptions(options)),
tap(opts => browserOptions = normalizeBrowserSchema(
Expand Down

0 comments on commit 20a644e

Please sign in to comment.