dsgdf45654 2014-08-27 11:35
浏览 46
已采纳

资产在开发环境中失败了

I'm trying to run assetic:dump from Symfony2 shell but it stops at some point and hangs there, this is the message I get:

[error] The source file "/var/www/html/app/../vendor/twbs/bootstrap/fonts/glyphicons-halflings-regular.eot" does not exist.

I used MopaBootstrapBundle in the past but I non longer needed so I remove it and after that I run all this commands:

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.

Any advice? What I'm doing wrong?

Adding assetic config at 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"
  • 写回答

1条回答 默认 最新

  • doufang8965 2014-08-27 14:09
    关注

    Somewhere in your templates, you have referenced that glyphicons-halflings-regular.eot file, but the reference is invalid.

    To get a clue of where to look, a simple grep will help:

    grep -r glyphicons-halflings-regular.eot src/ app/config vendor/
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 C++ yoloV5改写遇到的问题
  • ¥20 win11修改中文用户名路径
  • ¥15 win2012磁盘空间不足,c盘正常,d盘无法写入
  • ¥15 用土力学知识进行土坡稳定性分析与挡土墙设计
  • ¥70 PlayWright在Java上连接CDP关联本地Chrome启动失败,貌似是Windows端口转发问题
  • ¥15 帮我写一个c++工程
  • ¥30 Eclipse官网打不开,官网首页进不去,显示无法访问此页面,求解决方法
  • ¥15 关于smbclient 库的使用
  • ¥15 微信小程序协议怎么写
  • ¥15 c语言怎么用printf(“\b \b”)与getch()实现黑框里写入与删除?