简体   繁体   中英

not able to push the app to heroku

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!

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM