1

我在 ICDSoft 托管,所以我的目录结构如下所示:

/
    private/
        app/
        bin/
        src/
        vendor/

    www/
        www/
            bundles/
            app.php

当我尝试运行$ app/console assetic:dump时,出现以下运行时错误:

[RuntimeException]
The source file "/home/thesewingdiva/private/app/../web/bundles/majorproductionssewingdivasite/js/jquery-1.8.3.min.js" does not exist.

有没有办法让我告诉资产去寻找../www/www/bundles而不是../web/bundles寻找正确的资产?

4

1 回答 1

2

app/config/config.yml,在资产部分:

assetic:
    ...
    read_from: "%kernel.root_dir%/../www/www"
    ...

Symfony2 的 AsseticBundle 配置文档在这里:http ://symfony.com/doc/2.0/reference/configuration/assetic.html

于 2013-01-08T16:27:51.490 回答