Skip to content

Commit 51659f1

Browse files
rmed19wouterj
authored andcommitted
internal web server ran with dev environment by default
1 parent 3b0ea60 commit 51659f1

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

book/page_creation.rst

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ a method inside of it that will be executed when someone goes to ``/lucky/number
5959

6060
Before diving into this, test it out!
6161

62-
http://localhost:8000/app_dev.php/lucky/number
62+
http://localhost:8000/lucky/number
6363

6464
.. tip::
6565

@@ -86,9 +86,15 @@ return a Symfony :ref:`Response <component-http-foundation-response>` object
8686
Symfony through a file - ``web/app_dev.php`` - that boots it in the ``dev``
8787
environment. This enables great debugging tools and rebuilds cached
8888
files automatically. For production, you'll use clean URLs - like
89-
``http://localhost:8000/lucky/number`` - that execute a different file -
90-
``app.php`` - that's optimized for speed. To learn more about this and
91-
environments, see :ref:`book-page-creation-prod-cache-clear`.
89+
``http://symfony.dev/lucky/number`` - that execute a different file -
90+
``app.php`` - that's optimized for speed.
91+
92+
When you visit the ``http://localhost:8000`` URL in your browser, you're
93+
executing your Symfony application in the ``dev`` environment. To visit
94+
your application in the ``prod`` environment, visit the ``http://localhost:8000/app.php``
95+
URL instead.
96+
97+
To learn more about this and environments, see :ref:`book-page-creation-prod-cache-clear`.
9298

9399
Creating a JSON Response
94100
~~~~~~~~~~~~~~~~~~~~~~~~

0 commit comments

Comments
 (0)