问题
I'm on ICDSoft hosting, so my directory structure looks like:
/
private/
app/
bin/
src/
vendor/
www/
www/
bundles/
app.php
When I try running $ app/console assetic:dump
I get the following runtime error:
[RuntimeException]
The source file "/home/thesewingdiva/private/app/../web/bundles/majorproductionssewingdivasite/js/jquery-1.8.3.min.js" does not exist.
Is there a way for me to tell assetic to look in ../www/www/bundles
rather than ../web/bundles
for the correct assets?
回答1:
In app/config/config.yml
, in the assetic part :
assetic:
...
read_from: "%kernel.root_dir%/../www/www"
...
AsseticBundle configuration documentaion for Symfony2 is here : http://symfony.com/doc/2.0/reference/configuration/assetic.html
来源:https://stackoverflow.com/questions/14218936/runtime-error-using-assetic-w-symfony-2-on-shared-hosting