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

Add retry creation server when the port is used #2544

Merged
merged 1 commit into from
Feb 13, 2020

Conversation

thanhtaivtt
Copy link

@thanhtaivtt thanhtaivtt commented Feb 13, 2020

Description
When I create the server with the command sss, if my port 8080 is already in use, it will fail.
I want to add retries to use a different port if the command fails

CodeIgniter development server started on http://localhost:8080
Press Control-C to stop.
[Thu Feb 13 09:27:20 2020] Failed to listen on localhost:8080 (reason: Address already in use)
CodeIgniter development server started on http://localhost:8081
Press Control-C to stop.

Checklist:

  • Securely signed commits
  • Component(s) with PHPdocs
  • Unit testing, with >80% coverage
  • User guide updated
  • Conforms to style guide

@lonnieezell
Copy link
Member

Awesome. Thank you! This is something I meant to do but hadn't found the time just yet.

I will merge this time, but in the future please ensure your commits are signed.

@lonnieezell lonnieezell merged commit ddfc072 into codeigniter4:develop Feb 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants