500 error when compiling scss in symfony2

匆匆过客 提交于 2019-12-06 12:34:25
Nick Tomlin

The issue was the fact that I am using rvm, which causes issues with sass paths (thanks to this SO answer).

To solve this, I generated an rvm gemset with:

# will create 'php_sass' and 'php_compass' executables in $GEM_HOME
rvm wrapper ruby-1.9.3-p194 php sass compass

And added the following to my config.yml file:

assetic:
    debug:          %kernel.debug%
    use_controller: true
    bundles:        [ ]
    filters:
        cssrewrite: ~
        scss:
          sass: /Users/Nick/.rvm/bin/php_sass
          apply_to: "\.scss$"

SCSS files now compile just fine. Compass users will need to point assetic to the gemset for compass

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!