not able to push the app to heroku

元气小坏坏 提交于 2019-12-25 16:25:10

问题


I am trying to put my app to heroku but I am getting an issue.

remote: Sass::SyntaxError: Undefined variable: "$fa-css-prefix".

I am using font-awesome-rails.

I am doing git push staging master after following all the steps properly.

Edit: variables.less

@fa-font-path:        "/assets/font-awesome/fonts";
//fa-font-path:        "//netdna.bootstrapcdn.com/font-awesome/4.2.0/fonts"; // for referencing Bootstrap CDN font files directly
@fa-css-prefix:       "fa";
@fa-version:          "4.2.0";
@fa-border-color:     #eee;
@fa-inverse:          #fff;
@fa-li-width:         (30em / 14);

Please help!


回答1:


Do the following:

Open your project's font-awesome/less/variables.less or font-awesome/scss/_variables.scss and edit the @fa-font-path or $fa-font-path variable to point to your font directory.

Read more on it here

http://fontawesome.io/get-started#custom-less



来源:https://stackoverflow.com/questions/30862242/not-able-to-push-the-app-to-heroku

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