From 74c1ea7d9ce7498220513b9198f954614f74978e Mon Sep 17 00:00:00 2001 From: Thomas Landauer Date: Tue, 21 Nov 2023 16:01:57 +0100 Subject: [PATCH] Minor formating Page: https://symfony.com/doc/current/frontend/asset_mapper.html#serving-assets-in-dev-vs-prod --- frontend/asset_mapper.rst | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/frontend/asset_mapper.rst b/frontend/asset_mapper.rst index 1f10c8e3931..e9d67b76ea1 100644 --- a/frontend/asset_mapper.rst +++ b/frontend/asset_mapper.rst @@ -86,15 +86,16 @@ the file, the version part of the URL will change automatically! Serving Assets in dev vs prod ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -In the ``dev`` environment, the URL - ``/assets/images/duck-3c16d9220694c0e56d8648f25e6035e9.png`` -is handled and returned by your Symfony app. For the ``prod`` environment, before -deploy, you should run: +In the ``dev`` environment, the URL ``/assets/images/duck-3c16d9220694c0e56d8648f25e6035e9.png`` +is handled and returned by your Symfony app. + +For the ``prod`` environment, before deploy, you should run: .. code-block:: terminal $ php bin/console asset-map:compile -This will physically copy all the files from your mapped directories into +This will physically copy all the files from your mapped directories to ``public/assets/`` so that they're served directly by your web server. See :ref:`Deployment ` for more details.