File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -81,7 +81,7 @@ Serving Assets in dev vs prod
81
81
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
82
82
83
83
In the ``dev `` environment, the URL ``/assets/images/duck-3c16d9220694c0e56d8648f25e6035e9.png ``
84
- is handled and returned by your Symfony app.
84
+ is handled and returned by your Symfony app - but only if `` public/assets/ `` is empty (see below) .
85
85
86
86
For the ``prod `` environment, before deploy, you should run:
87
87
@@ -93,6 +93,9 @@ This will physically copy all the files from your mapped directories to
93
93
``public/assets/ `` so that they're served directly by your web server.
94
94
See :ref: `Deployment <asset-mapper-deployment >` for more details.
95
95
96
+ If you compiled your assets on your development machine, you need to delete them again,
97
+ in order to make Symfony serve the current versions from ``assets/ `` again.
98
+
96
99
.. tip ::
97
100
98
101
If you need to copy the compiled assets to a different location (e.g. upload
You can’t perform that action at this time.
0 commit comments