Skip to content

Commit

Permalink
fix: correctly set custom and fallback port settings (#223)
Browse files Browse the repository at this point in the history
  • Loading branch information
amcgee committed Dec 20, 2019
1 parent 6059571 commit c2ac04c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cli/src/commands/start.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ const handler = async ({
})

const newPort = await detectPort(port)
if (newPort !== port) {
if (String(newPort) !== String(port)) {
reporter.print('')
reporter.warn(
`Something is already running on port ${port}, using ${newPort} instead.`
Expand Down
4 changes: 2 additions & 2 deletions cli/src/lib/shell/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ module.exports = ({ config, paths }) => ({
pipe: false,
})
},
start: async () => {
start: async ({ port }) => {
await exec({
cmd: 'yarn',
args: ['run', 'start'],
cwd: paths.shell,
env: getEnv({ name: config.title }),
env: getEnv({ name: config.title, port }),
pipe: false,
})
},
Expand Down

0 comments on commit c2ac04c

Please sign in to comment.