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

[8.x] Add colon port support in serve host option. #38522

Conversation

haider00125
Copy link
Contributor

This PR add support to set port in --host option of artisan server command. This practice is pretty common in devops|sysadmins people. Please see example bellow:

php artisan serve --host=localhost:8888

In case --port option is provided then it will take precedence. For example bellow command will use port 8080 instead of 8888.
php artisan serve --host=localhost:8888 --port=8080

@haider00125 haider00125 changed the title [8.x] Add colon port support in server host option. Example (--host=localhost:8888) [8.x] Add colon port support in server host option. Aug 24, 2021
@haider00125 haider00125 changed the title [8.x] Add colon port support in server host option. [8.x] Add colon port support in serve host option. Aug 24, 2021
@taylorotwell taylorotwell merged commit 89069f8 into laravel:8.x Aug 24, 2021
victorvilella pushed a commit to cdsistemas/framework that referenced this pull request Oct 12, 2021
* Add colon port support in server host option.

* Adding style changes.

* Update ServeCommand.php

Co-authored-by: Taylor Otwell <taylor@laravel.com>
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.

2 participants