部署到Heroku的Sass错误

时间:2014-03-25 18:27:30

标签: ruby-on-rails heroku

我正在部署到Heroku并面临此错误。此错误不会显示在我的本地计算机上。

我还没有发现谷歌搜索这个问题。任何人都可以提供解决此问题的指示吗?

提前致谢

此致 SB

错误追踪-----------------------------

undefined method `declare' for Sass::Script::Functions:Module
       /tmp/build_da95c3d7-39ce-4b2e-9cdd-0fa67ee25910/vendor/bundle/ruby/2.0.0/gems/bootstrap-sass-3.1.1.0/lib/bootstrap-sass/sass_functions.rb:8:in `<module:Functions>'
       /tmp/build_da95c3d7-39ce-4b2e-9cdd-0fa67ee25910/vendor/bundle/ruby/2.0.0/gems/bootstrap-sass-3.1.1.0/lib/bootstrap-sass/sass_functions.rb:4:in `<top (required)>'
       /tmp/build_da95c3d7-39ce-4b2e-9cdd-0fa67ee25910/vendor/bundle/ruby/2.0.0/gems/bootstrap-sass-3.1.1.0/lib/bootstrap-sass.rb:5:in `require'
       /tmp/build_da95c3d7-39ce-4b2e-9cdd-0fa67ee25910/vendor/bundle/ruby/2.0.0/gems/bootstrap-sass-3.1.1.0/lib/bootstrap-sass.rb:5:in `load!'
       /tmp/build_da95c3d7-39ce-4b2e-9cdd-0fa67ee25910/vendor/bundle/ruby/2.0.0/gems/bootstrap-sass-3.1.1.0/lib/bootstrap-sass.rb:74:in `<top (required)>'
       /tmp/build_da95c3d7-39ce-4b2e-9cdd-0fa67ee25910/vendor/bundle/ruby/2.0.0/gems/bundler-1.5.2/lib/bundler/runtime.rb:76:in `require'
       /tmp/build_da95c3d7-39ce-4b2e-9cdd-0fa67ee25910/vendor/bundle/ruby/2.0.0/gems/bundler-1.5.2/lib/bundler/runtime.rb:76:in `block (2 levels) in require'
       /tmp/build_da95c3d7-39ce-4b2e-9cdd-0fa67ee25910/vendor/bundle/ruby/2.0.0/gems/bundler-1.5.2/lib/bundler/runtime.rb:72:in `each'
       /tmp/build_da95c3d7-39ce-4b2e-9cdd-0fa67ee25910/vendor/bundle/ruby/2.0.0/gems/bundler-1.5.2/lib/bundler/runtime.rb:72:in `block in require'
       /tmp/build_da95c3d7-39ce-4b2e-9cdd-0fa67ee25910/vendor/bundle/ruby/2.0.0/gems/bundler-1.5.2/lib/bundler/runtime.rb:61:in `each'
       /tmp/build_da95c3d7-39ce-4b2e-9cdd-0fa67ee25910/vendor/bundle/ruby/2.0.0/gems/bundler-1.5.2/lib/bundler/runtime.rb:61:in `require'
       /tmp/build_da95c3d7-39ce-4b2e-9cdd-0fa67ee25910/vendor/bundle/ruby/2.0.0/gems/bundler-1.5.2/lib/bundler.rb:131:in `require'
       /tmp/build_da95c3d7-39ce-4b2e-9cdd-0fa67ee25910/config/application.rb:7:in `<top (required)>'
       /tmp/build_da95c3d7-39ce-4b2e-9cdd-0fa67ee25910/Rakefile:5:in `require'
       /tmp/build_da95c3d7-39ce-4b2e-9cdd-0fa67ee25910/Rakefile:5:in `<top (required)>'
       /tmp/build_da95c3d7-39ce-4b2e-9cdd-0fa67ee25910/vendor/bundle/ruby/2.0.0/gems/rake-10.0.3/lib/rake/rake_module.rb:25:in `load'
       /tmp/build_da95c3d7-39ce-4b2e-9cdd-0fa67ee25910/vendor/bundle/ruby/2.0.0/gems/rake-10.0.3/lib/rake/rake_module.rb:25:in `load_rakefile'
       /tmp/build_da95c3d7-39ce-4b2e-9cdd-0fa67ee25910/vendor/bundle/ruby/2.0.0/gems/rake-10.0.3/lib/rake/application.rb:583:in `raw_load_rakefile'
       /tmp/build_da95c3d7-39ce-4b2e-9cdd-0fa67ee25910/vendor/bundle/ruby/2.0.0/gems/rake-10.0.3/lib/rake/application.rb:89:in `block in load_rakefile'
       /tmp/build_da95c3d7-39ce-4b2e-9cdd-0fa67ee25910/vendor/bundle/ruby/2.0.0/gems/rake-10.0.3/lib/rake/application.rb:160:in `standard_exception_handling'
       /tmp/build_da95c3d7-39ce-4b2e-9cdd-0fa67ee25910/vendor/bundle/ruby/2.0.0/gems/rake-10.0.3/lib/rake/application.rb:88:in `load_rakefile'
       /tmp/build_da95c3d7-39ce-4b2e-9cdd-0fa67ee25910/vendor/bundle/ruby/2.0.0/gems/rake-10.0.3/lib/rake/application.rb:72:in `block in run'
       /tmp/build_da95c3d7-39ce-4b2e-9cdd-0fa67ee25910/vendor/bundle/ruby/2.0.0/gems/rake-10.0.3/lib/rake/application.rb:160:in `standard_exception_handling'
       /tmp/build_da95c3d7-39ce-4b2e-9cdd-0fa67ee25910/vendor/bundle/ruby/2.0.0/gems/rake-10.0.3/lib/rake/application.rb:70:in `run'
       /tmp/build_da95c3d7-39ce-4b2e-9cdd-0fa67ee25910/vendor/bundle/ruby/2.0.0/gems/rake-10.0.3/bin/rake:33:in `<top (required)>'
       vendor/bundle/bin/rake:16:in `load'
       vendor/bundle/bin/rake:16:in `<main>'

1 个答案:

答案 0 :(得分:0)

/tmp/build_da95c3d7-39ce-4b2e-9cdd-0fa67ee25910/vendor/bundle/ruby/2.0.0/gems/bootstrap-sass-3.1.1.0/lib/bootstrap-sass/sass_functions.rb:8:in `<module:Functions>'

这是你的错误,here's the file

require 'sass'

module Sass
  module Script
    module Functions
      # LARS: Snatched from compass - 2011-11-29 - used for gradients in IE6-9
      # returns an IE hex string for a color with an alpha channel
      # suitable for passing to IE filters.
      def ie_hex_str(color)
        assert_type color, :Color
        alpha = (color.alpha * 255).round
        alphastr = alpha.to_s(16).rjust(2, '0')
        Sass::Script::String.new("##{alphastr}#{color.send(:hex_str)[1..-1]}".upcase)
      end
      declare :ie_hex_str, [:color]
    end
  end
end

您应该尝试在本地预编译您的资产&amp;看到什么错误回来了。除此之外,你将不得不谷歌这个错误&amp;文件的答案:)