2014-08-27 151 views
0

我试图从运行Symfony2的外壳assetic:dump,但是它停止在某些时候和挂在那儿,这是我得到的消息:Assetic未能开发环境

[错误]源文件 “/ 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

某处在你的模板,你已经引用了glyphicons,半身人,regular.eot文件,但引用无效。您能否将该模板的部分与该参考一起发布?而且,该文件的实际路径是什么? – lxg 2014-08-27 12:04:13

+0

@lxg这是问题我忘了完全删除'config.yml'处的资产'现在我删除了,命令运行良好,但控制台卡住了,也许是一个Symfony2错误或其他东西,请回答yhe问题给你的积分和感谢 – ReynierPM 2014-08-27 13:50:34

+0

很高兴知道它有帮助,感谢您的积分! :) – lxg 2014-08-27 14:09:50

回答

1

某处在你的模板添加assetic配置,您已经引用了glyphicons-halflings-regular.eot文件,但引用无效。

要获得到哪里寻找线索,一个简单的grep 帮助:

grep -r glyphicons-halflings-regular.eot src/ app/config vendor/