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 8440a17 commit e0d0d19
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -67,7 +67,7 @@ export class DevServerBuilder implements Builder<DevServerBuilderOptions> {
let first = true;
let opnAddress: string;

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

0 comments on commit e0d0d19

Please sign in to comment.