【发布时间】:2011-10-19 05:58:24
【问题描述】:
我有一个应用程序,我正在尝试使用 rails 3.1.0.rc5 部署到 Heroku Cedar 堆栈。 我关注的一些博客实现了向 cedar 和资产管道的迁移:
- 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
在 git push 到 heroku 之后,我运行 assets:precompile 任务:
heroku run rake -t assets:precompile --app myapp
js 文件编译正常,但是 Sass 编译 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 可以正常执行而不会出错。
【问题讨论】:
标签: ruby-on-rails-3 heroku sass compass-sass asset-pipeline