@@ -211,62 +211,7 @@ You also need to change the ``extra.public-dir`` option in the
211
211
your Symfony project work on your shared host. Another way is to deploy
212
212
your application to a directory outside of your web root, delete your
213
213
``public_html `` directory, and then replace it with a symbolic link to
214
- <<<<<<< HEAD
215
214
the ``public `` dir in your project.
216
- =======
217
- the ``web `` in your project.
218
-
219
- .. note ::
220
-
221
- If you use the AsseticBundle, you need to configure the ``read_from `` option
222
- to point to the correct ``web `` directory:
223
-
224
- .. configuration-block ::
225
-
226
- .. code-block :: yaml
227
-
228
- # app/config/config.yml
229
-
230
- # ...
231
- assetic :
232
- # ...
233
- read_from : ' %kernel.project_dir%/../public_html'
234
-
235
- .. code-block :: xml
236
-
237
- <!-- app/config/config.xml -->
238
- <?xml version =" 1.0" encoding =" UTF-8" ?>
239
- <container xmlns =" http://symfony.com/schema/dic/services"
240
- xmlns : assetic =" http://symfony.com/schema/dic/assetic"
241
- xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
242
- xsi : schemaLocation =" http://symfony.com/schema/dic/services
243
- http://symfony.com/schema/dic/services/services-1.0.xsd
244
- http://symfony.com/schema/dic/assetic
245
- http://symfony.com/schema/dic/assetic/assetic-1.0.xsd" >
246
-
247
- <!-- ... -->
248
- <assetic : config read-from =" %kernel.project_dir%/../public_html" />
249
-
250
- </container >
251
-
252
- .. code-block :: php
253
-
254
- // app/config/config.php
255
-
256
- // ...
257
- $container->loadFromExtension('assetic', [
258
- // ...
259
- 'read_from' => '%kernel.project_dir%/../public_html',
260
- ]);
261
-
262
- Now you just need to clear the cache and dump the assets again and your
263
- application should work:
264
-
265
- .. code-block :: terminal
266
-
267
- $ php bin/console cache:clear --env=prod
268
- $ php bin/console assetic:dump --env=prod --no-debug
269
- >>>>>>> 3.4
270
215
271
216
Override the ``vendor `` Directory
272
217
---------------------------------
0 commit comments