【发布时间】:2013-09-20 21:08:19
【问题描述】:
首先,我使用symfony cookbook website 上的说明将我的网络目录更改为public_html
我的 CSS 文件以前可以工作,但现在不行了。
当我使用命令转储资产时:
php app/console assetic:dump --env=prod --no-debug
生成的 CSS 文件是空的。
CSS 文件也没有在 html 中回显。
有什么想法吗?
【问题讨论】:
-
@Noquox 我做了
read_from: "%kernel.root_dir%/../../public_html",如文档中所述。 -
尝试在
config.yml中定义类似这样的内容:framework: #other params... templating: engines: ['twig'] assets_base_urls: http://yourdomain.com/public_html/ -
@Noquox 刚试过,没有成功:(
-
@Noquox 清除缓存,在 config.yml -
templating: engines: ['twig'] assets_base_urls: http: ["http://richie.local/PWD/public_html"] -
@Noquox 也不起作用。