Rails_admin gem 在 Heroku 上

Rails_admin gem on Heroku

我正在尝试 运行 在 heroku 上使用 rails_admin gem 的项目,但是在执行 assets: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

有人可以帮我吗?

嗯,你的 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

排除语法错误,您将解决错误