在生产模式和资产管道上损坏的导轨会导致我的应用
资产文件在静态中非常完美。
但迁移到 Ruby on Rails
真的很麻烦
config.assets.paths << "#{Rails.root}/vendor/themes"
config.assets.precompile << /(^[^_\/]|\/[^_])[^\/]*$/
config.assets.precompile = ['*.js', '*.css', '*.css.erb']
config.assets.js_compressor = :uglifier
config.assets.compile = true
I, [2015-05-21T19:00:38.736247 #14721] INFO -- : Writing /Users/user_a/workspace/template/kyper_landing_page/public/assets/functions/_is-length-ed12829b6bbace0c320b87ad01ba0e91.css
I, [2015-05-21T19:00:38.742276 #14721] INFO -- : Writing /Users/user_a/workspace/template/kyper_landing_page/public/assets/functions/_is-light-ed12829b6bbace0c320b87ad01ba0e91.css
I, [2015-05-21T19:00:38.748894 #14721] INFO -- : Writing /Users/user_a/workspace/template/kyper_landing_page/public/assets/functions/_is-number-ed12829b6bbace0c320b87ad01ba0e91.css
I, [2015-05-21T19:00:38.754851 #14721] INFO -- : Writing /Users/user_a/workspace/template/kyper_landing_page/public/assets/functions/_is-size-ed12829b6bbace0c320b87ad01ba0e91.css
rake aborted!
Sass::SyntaxError: Undefined variable: "$em-base".
(in /Users/user_a/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/bourbon-4.2.3/app/assets/stylesheets/functions/_modular-scale.scss:21)
F, [2015-05-21T18:58:10.681816 #14585] FATAL -- :
ActionController::RoutingError (No route matches [HEAD] "/assets/img/backgrounds/3_darker@2x.jpg"):
actionpack (4.2.0) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
actionpack (4.2.0) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
railties (4.2.0) lib/rails/rack/logger.rb:38:in `call_app'
答案 0 :(得分:1)
检查你的style.css 在线号码270,你必须在选择后写'}'。
由于
答案 1 :(得分:1)
文件vendor/themes/css/style.css
上的语法似乎有问题
请检查上述文件中的语法。