我正在尝试从Symfony2 shell运行assetic:dump
,但它会在某个时刻停止并挂起,这是我得到的消息:
[错误]源文件 “/var/www/html/app/../vendor/twbs/bootstrap/fonts/glyphicons-halflings-regular.eot” 不存在。
我过去使用过MopaBootstrapBundle,但我不再需要了,所以我将其删除,然后运行所有这些命令:
Symfony > cache:clear
Clearing the cache for the dev environment with debug true
Symfony > cache:warmup
Warming up the cache for the dev environment with debug true
Symfony > assetic:dump --watch
Dumping all dev assets.
Debug mode is on.
[error] The source file "/var/www/html/app/../vendor/twbs/bootstrap/fonts/glyphicons-halflings-regular.eot" does not exist.
有什么建议吗?我做错了什么?
在config.yml
assetic:
debug: "%kernel.debug%"
use_controller: false
bundles:
- PlantillaBundle
- ComunBundle
- UsuarioBundle
java: /usr/bin/java
filters:
cssrewrite: ~
cssembed:
jar: %kernel.root_dir%/Resources/java/cssembed.jar
yui_css:
jar: %kernel.root_dir%/Resources/java/yuicompressor.jar
yui_js:
jar: %kernel.root_dir%/Resources/java/yuicompressor.jar
assets:
fonts_glyphicons_eot:
inputs:
- "%kernel.root_dir%/../vendor/twbs/bootstrap/fonts/glyphicons-halflings-regular.eot"
output: "fonts/glyphicons-halflings-regular.eot"
fonts_glyphicons_svg:
inputs:
- "%kernel.root_dir%/../vendor/twbs/bootstrap/fonts/glyphicons-halflings-regular.svg"
output: "fonts/glyphicons-halflings-regular.svg"
fonts_glyphicons_ttf:
inputs:
- "%kernel.root_dir%/../vendor/twbs/bootstrap/fonts/glyphicons-halflings-regular.ttf"
output: "fonts/glyphicons-halflings-regular.ttf"
fonts_glyphicons_woff:
inputs:
- "%kernel.root_dir%/../vendor/twbs/bootstrap/fonts/glyphicons-halflings-regular.woff"
output: "fonts/glyphicons-halflings-regular.woff"
答案 0 :(得分:1)
在模板的某处,您引用了glyphicons-halflings-regular.eot
文件,但引用无效。
要弄清楚要去哪里看,一个简单的 grep 会有所帮助:
grep -r glyphicons-halflings-regular.eot src/ app/config vendor/