-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
php spark serve #996
php spark serve #996
Conversation
I'm enjoying your Pull Request (which I think is perfect). To say that the last line of the Before : passthru("{$php} -S {$host}:{$port} -t public/ rewrite.php"); After : passthru("{$php} -S {$host}:{$port} -t public/ .../rewrite.php"); I have to add ../ before rewrite.php (Windows) |
@natanfelles What benefit do you see by putting it behind the |
@deathart , in fact this PR should not be so perfect... But the intention is to try to improve. @lonnieezell , the intent is to make this command more visible when the spark is executed. In addition to decreasing the number of executables outside the system and application folders. I added the I do not know if application/Config/Rewrite.php is the best place to put the server router, but I thought the user might have changed the path of the Front Controller or want to pass custom |
Are you referring to a "Laravel spark" (scaffolding?), or the "spark" microframework, or the long-gone Ci "spark"? I could be out of it, but I don't recall this coming up recently in a CI context. |
I could refer to "Symfony Console spark", but no. Just a PR, yous decide. |
Ok, I can't even find a reference to "Symfony console spark". It sounds like that could be another interpretation of the "verb/command". I see that this came up on the forum, and there was a lot of support for the term, which is unfortunate given the other possible interpretations. I didn't even think to refer to the forum until I remembered the thread on the CLI tool name :-/ |
@natanfelles That's a fair point. I'm fine with moving this to a command, then. However - I'm really not a fan of having the rewrite class in Config. It's not a configuration file. It is needed to make the server work as expected, though. I propose:
Then I'll accept. |
Because the file composition has changed by the next PR of Code Igniter 4, editing of a nonexistent file and deletion of the code that is about to be copied. codeigniter4/CodeIgniter4#996
Move the development server to a spark command.