Skip to content
New issue

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

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

Already on GitHub? # to your account

Don't start develop server if port in use #335

Merged
merged 1 commit into from
Jun 16, 2016
Merged

Conversation

KyleAMathews
Copy link
Contributor

Also output friendlier error message w/ PID of process
that's listening on the desired port.

Fixes #334

Also output friendlier error message w/ PID of process
that's listening on the desired port.
@KyleAMathews
Copy link
Contributor Author

The error message for when the desired port is already in use looks like:

We were unable to start Gatsby on port 8000 as there's already a process
listening on that port (PID: 43337). You can either use a different port
(e.g. gatsby develop --port 8001) or stop the process already listening
on your desired port.

@KyleAMathews KyleAMathews merged commit c12afcb into master Jun 16, 2016
@0x80 0x80 deleted the find-process branch April 19, 2017 20:22
ChristopherBiscardi pushed a commit to ChristopherBiscardi/gatsby that referenced this pull request Jun 27, 2019
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant