Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions setup/built_in_web_server.rst
Original file line number Diff line number Diff line change
Expand Up @@ -83,13 +83,12 @@ Command Options

The built-in web server expects a "router" script (read about the "router"
script on `php.net`_) as an argument. Symfony already passes such a router
script when the command is executed in the ``prod`` or in the ``dev`` environment.
Use the ``--router`` option in any other environment or to use another router
script:
script when the command is executed in the ``prod`` or ``dev`` environments.
Use the ``--router`` option to use your own router script:

.. code-block:: terminal

$ php app/console server:start --env=test --router=app/config/router_test.php
$ php app/console server:start --router=app/config/my_router.php

If your application's document root differs from the standard directory layout,
you have to pass the correct location using the ``--docroot`` option:
Expand Down