我正在尝试使用heroku上的rails_admin gem运行项目,但在执行资产时遇到以下错误:precompile:
remote: I, [2015-11-12T23:13:37.913854 #908] INFO -- : Writing /tmp/build_be9e6f7c3fc8b833cd6ab95c29eeb71b/public/assets/rails_admin/base/mixins-3e0cccbb54e2038718c2b538a370d24f.css
remote: rake aborted!
remote: Sass::SyntaxError: Undefined variable: "$navbar-height".
remote: (in /tmp/build_be9e6f7c3fc8b833cd6ab95c29eeb71b/vendor/bundle/ruby/2.0.0/gems/r ails_admin-0.7.0/app/assets/stylesheets/rails_admin/base/theming.scss:16)
然后:
remote: Tasks: TOP => assets:precompile
remote: (See full trace by running task with --trace)
remote: !
remote: ! Precompiling assets failed.
remote: !
remote:
remote: ! Push rejected, failed to compile Ruby app
任何人都可以帮我吗?
答案 0 :(得分:0)
好像您的SASS语法错误
remote: Sass::SyntaxError: Undefined variable: "$navbar-height".
remote: (in /tmp/build_be9e6f7c3fc8b833cd6ab95c29eeb71b/vendor/bundle/ruby/2.0.0/gems/r ails_admin-0.7.0/app/assets/stylesheets/rails_admin/base/theming.scss:16)
查看行theming.scss
16
文件
排除语法错误,您将解决错误