Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 51659f1

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

File tree

Expand file treeCollapse file tree

1 file changed

+10
-4
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+10
-4
lines changed

‎book/page_creation.rst

Copy file name to clipboardExpand all lines: book/page_creation.rst
+10-4Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.