diff --git a/frontend/asset_mapper.rst b/frontend/asset_mapper.rst index c8febf65757..8f7ac2c869a 100644 --- a/frontend/asset_mapper.rst +++ b/frontend/asset_mapper.rst @@ -81,7 +81,7 @@ 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. +is handled and returned by your Symfony app - but only if ``public/assets/`` is empty (see below). For the ``prod`` environment, before deploy, you should run: @@ -93,6 +93,11 @@ 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. +.. caution:: + + If you compiled your assets on your development machine, you need to delete them again, + in order to make Symfony serve the current versions from ``assets/`` again. + .. tip:: If you need to copy the compiled assets to a different location (e.g. upload