bootstrap heroku没有显示

时间:2014-05-04 23:41:17

标签: heroku bootstrap-sass

我在heroku上使用gem'bootstrap-sass'以及gem'sass-rails','〜> 4.0.0' 在我的本地服务器上,我可以看到我的css更改但是当我加载到heroku时,我的自定义css被覆盖。

例如,在我的本地服务器中,我可以清楚地看到chrome developer tool中的css文件为

font-family:“Lato”,“Helvetica Neue”,Helvetica,Arial,sans-serif;

但是在css上这已经过了。我的意思是我可以在heroku中看到chrome开发人员工具 上面的行被删除,另一个字体显示

font-family:verdana,arial,helvetica,sans-serif;

我没有添加这个字体。此外,“身体背景颜色”css颜色被剔除,默认白色背景显示为身体背景颜色。

任何人都可以提供任何指示。

这就是我的production.rb的样子

Rails.application.configure do
   config.cache_classes = true
  config.eager_load = true
  config.consider_all_requests_local       = false
  config.action_controller.perform_caching = true
  config.serve_static_assets = false
 config.assets.js_compressor = :uglifier
   config.assets.compile = false
   config.assets.digest = true
  config.assets.version = '1.0'
  config.log_level = :info
  config.i18n.fallbacks = true
 config.active_support.deprecation = :notify
 config.log_formatter = ::Logger::Formatter.new
  config.active_record.dump_schema_after_migration = false
   config.action_mailer.default_url_options = { host: 'http://MY_CUSTOM_NAME.herokuapp.com' }
end

1 个答案:

答案 0 :(得分:0)

我没有从stylesheets目录中删除脚手架css文件。这在heroku上搞砸了css。我删除了文件并上传到Heroku并且css工作了。