1
我有一個應用程序,我試圖部署到Heroku Cedar堆棧,使用rails 3.1.0.rc5。 一些博客,我跟着執行遷移雪松和資產管道:對於[[]]未定義的方法`args =':Sass :: Tree :: FunctionNode使用rails部署到heroku 3.1
- http://metaskills.net/2011/07/29/use-compass-sass-framework-files-with-the-rails-3.1.0.rc5-asset-pipeline/
- http://devcenter.heroku.com/articles/rails31_heroku_cedar
- http://railsapps.github.com/rails-heroku-tutorial.html
一個混帳推到Heroku上後,我跑了資產:預編譯任務:
heroku run rake -t assets:precompile --app myapp
的JS文件進行編譯正常,但是薩斯炸彈編譯application.css.scss錯誤:
rake aborted!
undefined method `args=' for [[]]:Sass::Tree::FunctionNode
(in /app/app/assets/stylesheets/application.css.scss)
全部輸出和堆棧跟蹤這裏:https://gist.github.com/1122683
運行bundle exec rake assets:precompile
本地沒有錯誤執行罰款。
'寶石卸載sass' || 'gem install sass -v 3.1.5' – DucDigital
@DucDIgital如果您使用捆綁軟件,則無需卸載以前版本的sass。 –