Skip to content

Commit

Permalink
Fix random port assignment for dev server
Browse files Browse the repository at this point in the history
  • Loading branch information
RaeesBhatti committed Jan 8, 2020
1 parent ef1e08e commit 590a94a
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/commands/dev/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -380,14 +380,6 @@ class DevCommand extends Command {
}
if (!settings.jwtRolePath) settings.jwtRolePath = 'app_metadata.authorization.roles'

// Reset port if not manually specified, to make it dynamic
if (!(config.dev && config.dev.port) && !flags.port) {
settings = {
port: await getPort({ port: settings.port }),
...settings
}
}

const ps = startDevServer(settings, this.log)
await Promise.all([ps, (async () => {
// serve functions from zip-it-and-ship-it
Expand Down

0 comments on commit 590a94a

Please sign in to comment.