Unable to load Sass / Compass after installing RVM, to use with Assetic in Symfony2

后端 未结 2 1879
我寻月下人不归
我寻月下人不归 2021-01-26 22:58

I was trying to use Capifony, which requires Capistrano, which requires Ruby. But my apt version of ruby was old and was throwing syntax errors. So then I installed RVM and did

相关标签:
2条回答
  • 2021-01-26 23:49

    I guess you need a wrapper:

    rvm wrapper ruby-1.9.3-p194@myapp php sass compass
    

    this will generate wrappers which will call proper ruby(rvm) environment, use them like:

    sass:
        bin: /usr/local/rvm/bin/php_sass
        #apply_to: "\.scss$"
    compass:
        bin: /usr/local/rvm/bin/php_compass
        apply_to: "\.scss$"
    
    0 讨论(0)
  • 2021-01-26 23:52

    Solution

    Just use lessphp. It can be installed with Composer, and then in config.yml:

        lessphp:
             php: %kernel.root_dir%/../vendor/leafo/lessphp/lessc.inc.php
             apply_to: "\.less"
    
    0 讨论(0)
提交回复
热议问题