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

后端 未结 2 1909
我寻月下人不归
我寻月下人不归 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$"
    

提交回复
热议问题