我的應用程序在haml和scss的指南針和sussy的開發環境中正常工作,並且應用程序的Gemfile配置爲 - :Gist for GemfileRails 3.1.3使用指南針+ sussy + haml + scss編譯資產時出現登臺服務器錯誤
和我的application.rb中設置是這樣的 - :
if defined?(Sass)
config.sass.load_paths << "#{Gem.loaded_specs['compass'].full_gem_path}/frameworks/compass/stylesheets"
config.sass.load_paths << "#{Gem.loaded_specs['compass'].full_gem_path}/frameworks/blueprint/stylesheets"
config.sass.load_paths << "#{Gem.loaded_specs['compass-susy-plugin'].full_gem_path}/sass"
end
config.assets.precompile << /(^[^_]|\/[^_])[^\/]*/
但是,當我部署我的應用程序服務器。這是在分段環境。總是拋出我的錯誤 - :
Error compiling asset application.css:
Sass::SyntaxError: Undefined variable: "$base-font-size".
(in /var/www/App-staging/releases/20120405100127/app/assets/stylesheets/_mobile-first.scss)
Served asset /application.css - 500 Internal Server Error
如果我嘗試提供一些黑客和補丁給我的錯誤 - :
Compiled application.css
Completed 500 Internal Server Error in 419ms
ActionView::Template::Error (File to import not found or unreadable: compass/css3/.
Load path: Sass::Rails::Importer
所以是這是指南針的問題和軌道版本? Ans有沒有永久的解決方案來擺脫這個或任何工作配置的舞臺和生產環境。 感謝您的幫助。
沒有它給出了錯誤 未定義的方法'sass'爲# –
2012-04-14 20:47:58