我尝试将我的应用程序部署到heroku,并且我一直有这个中止的消息。
remote: I, [2015-04-02T14:07:53.652063 #994] INFO -- : Writing /tmp/build_d5672e6843462b29ddbf37fb55806c48/public/assets/active_admin/lib/popover-b154a59d4500bd0726bb70ba26dc1702.js
remote: I, [2015-04-02T14:07:54.107466 #994] INFO -- : Writing /tmp/build_d5672e6843462b29ddbf37fb55806c48/public/assets/active_admin/lib/table-checkbox-toggler-483727cbd1f64c5174cc4e452c842f04.js
remote: rake aborted!
remote: Sass::SyntaxError: Undefined mixin 'global-reset'.
remote: (in /tmp/build_d5672e6843462b29ddbf37fb55806c48/vendor/bundle/ruby/2.0.0/bundler/gems/active_admin-60914c887942/app/assets/stylesheets/active_admin/_base.scss:3)
remote: /tmp/build_d5672e6843462b29ddbf37fb55806c48/vendor/bundle/ruby/2.0.0/bundler/gems/active_admin-60914c887942/app/assets/stylesheets/active_admin/_base.scss:3:in `global-reset'
remote: /tmp/build_d5672e6843462b29ddbf37fb55806c48/vendor/bundle/ruby/2.0.0/bundler/gems/active_admin-60914c887942/app/assets/stylesheets/active_admin/_base.scss:3
我在初始化/ assets.rb中尝试过它并不适用于我:
config.assets.precompile += %w(*.svg *.eot *.woff *.ttf *.gif *.png *.ico)
config.assets.precompile << /\A(?!active_admin).*\.(js|css)\z/
有人帮助我吗?
答案 0 :(得分:1)
这似乎是Active Admin的一个问题,这里有几个不同的修补程序:https://github.com/activeadmin/activeadmin/issues/810
看起来像这个技巧的是@ mike-marcacci的解决方案,将以下行添加到config / environments / production.rb:
config.assets.precompile += %w(active_admin.css active_admin/print.css rsvp.css)
config.assets.precompile += %w(active_admin.js global.js rsvp.js)
希望这有帮助!