2015-06-16 132 views
0

我想把我的應用程序到heroku,但我得到一個問題。無法推送應用程序到heroku

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

我使用字體真棒護欄

我正在做git push staging master正確地按照所有步驟。

編輯: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); 

請幫幫忙!

+1

請張貼完整的日誌。 – Pavan

+0

[資產管道未定義變量SASS]的可能重複(http://stackoverflow.com/questions/21142113/asset-pipeline-undefined-variable-sass) – Pavan

+0

它是否工作,如果你刪除變量? –

回答

0

執行以下操作:

打開項目的字體真棒/更少/ variables.less或字體真棒/ SCSS/_variables.scss和編輯@ FA-字體路徑或$ FA-字體路徑變量指向你的字體目錄。

瞭解更多關於在這裏

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

+0

已經關注了這個答案,仍然得到這個錯誤。 – Suraj

+0

請檢查我更新的問題。我已經從variables.less中添加了片段 – Suraj

相關問題