知道可能导致以下错误的原因吗?自上次运行良好的更新以来,我在其中一个网页中进行了最简单的纯文本更改。我尝试查看的任何页面都会给我这个heroku logs
:
2013-05-01T05:07:07.390621+00:00 app[web.1]: ActionView::Template::Error (File to import not found or unreadable: compass/css3/images.
我在做 a 时看到了这个错误git push heroku
(顺便说一句,一切都在本地完美运行):
-----> Removing .DS_Store files
-----> Ruby/Rails app detected
-----> WARNING: Removing `Gemfile.lock` because it was generated on Windows.
Bundler will do a full resolve so native gems are handled properly.
This may result in unexpected gem versions being used in your app.
-----> Installing dependencies using Bundler version 1.3.2
Running: bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin
Fetching gem metadata from http://rubygems.org/...........
Fetching gem metadata from http://rubygems.org/..
Resolving dependencies...
Using rake (10.0.4)
Using i18n (0.6.1)
Using multi_json (1.7.2)
Using activesupport (3.2.13)
Using builder (3.0.4)
Using activemodel (3.2.13)
Using erubis (2.7.0)
Using journey (1.0.4)
Using rack (1.4.5)
Using rack-cache (1.2)
Using rack-test (0.6.2)
Using hike (1.2.2)
Using tilt (1.3.7)
Using sprockets (2.2.2)
Using actionpack (3.2.13)
Using mime-types (1.23)
Using polyglot (0.3.3)
Using treetop (1.4.12)
Using mail (2.5.3)
Using actionmailer (3.2.13)
Using arel (3.0.2)
Using tzinfo (0.3.37)
Using activerecord (3.2.13)
Using activeresource (3.2.13)
Using bcrypt-ruby (3.0.1)
Using bundler (1.3.2)
Using cancan (1.6.9)
Using chunky_png (1.2.8)
Using coffee-script-source (1.6.2)
Using execjs (1.4.0)
Using coffee-script (2.2.0)
Using rack-ssl (1.3.3)
Using json (1.7.7)
Using rdoc (3.12.2)
Using thor (0.18.1)
Using railties (3.2.13)
Using coffee-rails (3.2.2)
Using fssm (0.2.10)
Using sass (3.2.8)
Using compass (0.12.2)
Using compass-rails (1.0.3)
Using orm_adapter (0.4.0)
Using warden (1.2.1)
Using devise (2.2.3)
Using high_voltage (1.2.2)
Using jquery-rails (2.2.1)
Using jquery-rails-cdn (0.4.0)
Using pg (0.15.1)
Using rails (3.2.13)
Using sass-rails (3.2.6)
Using uglifier (2.0.1)
Using zurb-foundation (4.1.5)
Your bundle is complete! It was installed into ./vendor/bundle
Cleaning up the bundler cache.
-----> Writing config/database.yml to read from DATABASE_URL
-----> Preparing app for Rails asset pipeline
Running: rake assets:precompile
rake aborted!
File to import not found or unreadable: foundation/foundation-global.
Load paths:
Sass::Rails::Importer(/tmp/build_2ebj8sbzb7g2f/app/assets/stylesheets/foundation_and_overrides.scss)
/tmp/build_2ebj8sbzb7g2f/app/assets/stylesheets
/tmp/build_2ebj8sbzb7g2f/vendor/bundle/ruby/1.9.1/gems/compass-0.12.2/frameworks/blueprint/stylesheets
/tmp/build_2ebj8sbzb7g2f/vendor/bundle/ruby/1.9.1/gems/compass-0.12.2/frameworks/compass/stylesheets
Compass::SpriteImporter
(in /tmp/build_2ebj8sbzb7g2f/app/assets/stylesheets/foundation_and_overrides.scss)
/tmp/build_2ebj8sbzb7g2f/app/assets/stylesheets/foundation_and_overrides.scss:2
/tmp/build_2ebj8sbzb7g2f/vendor/bundle/ruby/1.9.1/gems/sass-3.2.8/lib/sass/tree/import_node.rb:67:in `rescue in import'
/tmp/build_2ebj8sbzb7g2f/vendor/bundle/ruby/1.9.1/gems/sass-3.2.8/lib/sass/tree/import_node.rb:45:in `import'
然后更多的是冗长的堆栈跟踪......
更新:似乎即使我尝试在本地预编译资产我也会收到错误:
new-host-6:myapp scott$ RAILS_ENV=production bundle exec rake assets:precompile
/Users/scott/.rvm/rubies/ruby-1.9.3-p194/bin/ruby /Users/scott/.rvm/gems/ruby-1.9.3-p194@myapp/bin/rake assets:precompile:all RAILS_ENV=production RAILS_GROUPS=assets
rake aborted!
File to import not found or unreadable: foundation/foundation-global.
Load paths:
Sass::Rails::Importer(/Users/scott/Code/myapp/app/assets/stylesheets/foundation_and_overrides.scss)
/Users/scott/Code/myapp/app/assets/stylesheets
/Users/scott/.rvm/gems/ruby-1.9.3-p194@myapp/gems/compass-0.12.2/frameworks/blueprint/stylesheets
/Users/scott/.rvm/gems/ruby-1.9.3-p194@myapp/gems/compass-0.12.2/frameworks/compass/stylesheets
Compass::SpriteImporter
(in /Users/scott/Code/myapp/app/assets/stylesheets/foundation_and_overrides.scss)
/Users/scott/Code/myapp/app/assets/stylesheets/foundation_and_overrides.scss:2
/Users/scott/.rvm/gems/ruby-1.9.3-p194@myapp/gems/sass-3.2.8/lib/sass/tree/import_node.rb:67:in `rescue in import'
/Users/scott/.rvm/gems/ruby-1.9.3-p194@myapp/gems/sass-3.2.8/lib/sass/tree/import_node.rb:45:in `import'
/Users/scott/.rvm/gems/ruby-1.9.3-p194@myapp/gems/sass-3.2.8/lib/sass/tree/import_node.rb:28:in `imported_file'
/Users/scott/.rvm/gems/ruby-1.9.3-p194@myapp/gems/sass-3.2.8/lib/sass/tree/import_node.rb:37:in `css_import?'
为什么foundation/foundation-global
突然找不到或无法读取?
更新 2:看起来这只是Zurb Foundation 最新(v4.1.5)版本中的一个错误。“在最近的版本中,foundation/foundation-global 文件已重命名为 Foundation/variables。对于这可能造成的任何混乱,我们深表歉意。” 但是,如果我更改foundation-global
为variables
,页面加载但格式和 CSS 全部关闭:(。