Skip to content
This repository has been archived by the owner on May 3, 2022. It is now read-only.

Commit

Permalink
Fix port
Browse files Browse the repository at this point in the history
  • Loading branch information
Kikobeats committed Aug 18, 2017
1 parent 279ac90 commit 9a138e2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions bin/serve/get-port.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ module.exports = async cli => {
const envPort = process.env.port || process.env.PORT
if (envPort) return envPort

const { port: userPort } = cli

const { port: userPort } = cli.flags
const port = await getPort(userPort)
const inUse = port !== userPort

Expand Down

0 comments on commit 9a138e2

Please sign in to comment.