Skip to content

internal web server ran with dev environment by default #5612

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

Closed
Closed
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
14 changes: 10 additions & 4 deletions book/page_creation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ a method inside of it that will be executed when someone goes to ``/lucky/number

Before diving into this, test it out!

http://localhost:8000/app_dev.php/lucky/number
http://localhost:8000/lucky/number

.. tip::

Expand All @@ -87,9 +87,15 @@ return a Symfony :ref:`Response <component-http-foundation-response>` object
Symfony through a file - ``web/app_dev.php`` - that boots it in the ``dev``
environment. This enables great debugging tools and rebuilds cached
files automatically. For production, you'll use clean URLs - like
``http://localhost:8000/lucky/number`` - that execute a different file -
``app.php`` - that's optimized for speed. To learn more about this and
environments, see :ref:`book-page-creation-prod-cache-clear`.
``http://symfony.dev/lucky/number`` - that execute a different file -
``app.php`` - that's optimized for speed.

When you visit the ``http://localhost:8000`` URL in your browser, you're
executing your Symfony application in the ``dev`` environment. To visit
your application in the ``prod`` environment, visit the ``http://localhost:8000/app.php``
URL instead.

To learn more about this and environments, see :ref:`book-page-creation-prod-cache-clear`.

Creating a JSON Response
~~~~~~~~~~~~~~~~~~~~~~~~
Expand Down