Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(v2): Fixes serve cli --port option #3531

Merged
merged 2 commits into from
Oct 5, 2020

Conversation

UmairKamran
Copy link
Contributor

@UmairKamran UmairKamran commented Oct 2, 2020

Motivation

The command serve was not equipped to handle the value of port being null.
Also there was a typing mismatch where port input from CLI (string) was type-casted as a number.

Have you read the Contributing Guidelines on pull requests?

Yes.

Test Plan

The expected behavior can be seen here.
serve_fix

Related PRs

Fixes issue #3505 .

@facebook-github-bot facebook-github-bot added the CLA Signed Signed Facebook CLA label Oct 2, 2020
@docusaurus-bot
Copy link
Contributor

docusaurus-bot commented Oct 2, 2020

Deploy preview for docusaurus-2 ready!

Built with commit 36e1dfd

https://deploy-preview-3531--docusaurus-2.netlify.app

@slorber
Copy link
Collaborator

slorber commented Oct 5, 2020

Thanks, LGTM.

Added some refactors as well as the code between start/serve was a bit duplicated uselessly

@slorber slorber added the pr: bug fix This PR fixes a bug in a past release. label Oct 5, 2020
@slorber slorber merged commit 1097347 into facebook:master Oct 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed Signed Facebook CLA pr: bug fix This PR fixes a bug in a past release.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cli --port option reports "something is already running on port ${number}"
4 participants