Skip to content

[Cookbook] add cookbook article for the server:run command #4000

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

Merged
merged 1 commit into from
Aug 19, 2014

Conversation

xabbuh
Copy link
Member

@xabbuh xabbuh commented Jul 6, 2014

Q A
Doc fix? no
New docs? yes (symfony/symfony#3465)
Applies to all
Fixed tickets

How to Use PHP's built-in Web Server
====================================

Since PHP 5.4 the CLI SAPI comes with a `built-in web server`. It can be used
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

missing underscore after built-in web server

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wow, great catch!

@wouterj
Copy link
Member

wouterj commented Aug 15, 2014

I would like to see references to this article in places where we talk about the server:run command (for instance, the quick tour)

@xabbuh
Copy link
Member Author

xabbuh commented Aug 16, 2014

Actually, there's just one part in the docs that mentions the built-in web server at the moment (the quick tour that you mentioned). But we'll have to keep track of this if we start to tend to focus more on the built-in server in the future.


The server then binds on port 8000 on the loopback device and responds to
incoming HTTP requests until the execution is terminated (this is usually
done pressing Ctrl and C).
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What do you think about this:

This starts a server at `localhost:8000` that executes your Symfony application. The
command will wait and respond to incoming HTTP requests until you terminate it (this
is usually done by pressing Ctrl and C).

I'm trying to keep the language a little simpler, but obviously, I want to remain accurate.

@xabbuh
Copy link
Member Author

xabbuh commented Aug 16, 2014

However, I addressed all your other suggestions. Thanks for these nice additions.

@weaverryan
Copy link
Member

@xabbuh I'm going to merge this is now, because I don't think it's missing anything. Great work! I'll open up an issue about adding the note about the VM. See #4149

@weaverryan weaverryan merged commit 57f467a into symfony:2.3 Aug 19, 2014
weaverryan added a commit that referenced this pull request Aug 19, 2014
…and (xabbuh)

This PR was merged into the 2.3 branch.

Discussion
----------

[Cookbook] add cookbook article for the server:run command

| Q             | A
| ------------- | ---
| Doc fix?      | no
| New docs?     | yes (symfony/symfony#3465)
| Applies to    | all
| Fixed tickets |

Commits
-------

57f467a add cookbook article for the server:run command
@xabbuh xabbuh deleted the built-in-web-server branch August 19, 2014 22:11
weaverryan added a commit that referenced this pull request Oct 29, 2014
…ver in VMs (xabbuh)

This PR was merged into the 2.3 branch.

Discussion
----------

[Cookbook][Web Server] add sidebar for the built-in server in VMs

| Q             | A
| ------------- | ---
| Doc fix?      | yes
| New docs?     | no
| Applies to    | all
| Fixed tickets | #4149

As discussed with @weaverryan in #4000, this pull request adds a sidebar which explains how to easily use the built-in web server in virtual machines to make it accessible from the host machine.

Commits
-------

28645d9 add sidebar for the built-in server in VMs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants