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

Default options for ./yii serve must be configurable #157

Closed
uniserpl opened this issue Jul 17, 2022 · 0 comments
Closed

Default options for ./yii serve must be configurable #157

uniserpl opened this issue Jul 17, 2022 · 0 comments
Labels
good first issue Simple enough issue to start with. status:ready for adoption Feel free to implement this issue. type:enhancement Enhancement

Comments

@uniserpl
Copy link

When I develop different projects, there is a need to run them at the same time. I need to configure for each project its own port for ./yii serve command.

Class \Yiisoft\Yii\Console\Command\Serve is finalized and DEFAULT_PORT is private const. I can't extend it and redeclare DEFAULT_PORT.

I can write script serve with simple content ./yii serve --port=8081 etc. and ignore it by git. But this solution looks like a crutch

@samdark samdark added type:enhancement Enhancement status:ready for adoption Feel free to implement this issue. good first issue Simple enough issue to start with. labels Jul 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Simple enough issue to start with. status:ready for adoption Feel free to implement this issue. type:enhancement Enhancement
Projects
None yet
Development

No branches or pull requests

2 participants