Css Bootstrap social rails按钮在脱机状态下正常显示,但在heroku上不显示
我的按钮在离线状态下看起来很好,但当我把它们按到Heroku时,填充就关闭了。还有其他人经历过吗 config/environments/development.rb config/environments/development.rb 资产/样式表/application.css 关于heroku: 离线 我已经运行了rake资产:在推之前进行预编译,结果仍然相同。欢迎所有建议 编辑 这是我的Gem文件,我知道我有重复的Gem:Css Bootstrap social rails按钮在脱机状态下正常显示,但在heroku上不显示,css,ruby-on-rails,ruby,twitter-bootstrap,heroku,Css,Ruby On Rails,Ruby,Twitter Bootstrap,Heroku,我的按钮在离线状态下看起来很好,但当我把它们按到Heroku时,填充就关闭了。还有其他人经历过吗 config/environments/development.rb config/environments/development.rb 资产/样式表/application.css 关于heroku: 离线 我已经运行了rake资产:在推之前进行预编译,结果仍然相同。欢迎所有建议 编辑 这是我的Gem文件,我知道我有重复的Gem: source 'https://rubygems.org'
source 'https://rubygems.org'
ruby '2.2.0'
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '4.2.0'
# Use postgresql as the database for Active Record
gem 'pg'
# Use SCSS for stylesheets
gem 'sass-rails', '~> 5.0'
# Use Uglifier as compressor for JavaScript assets
gem 'uglifier', '>= 1.3.0'
# Use CoffeeScript for .coffee assets and views
gem 'coffee-rails', '~> 4.1.0'
# See https://github.com/sstephenson/execjs#readme for more supported runtimes
# gem 'therubyracer', platforms: :ruby
gem 'turbolinks'
# Use jquery as the JavaScript library
gem 'jquery-rails'
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
gem 'jbuilder', '~> 2.0'
# bundle exec rake doc:rails generates the API under doc/api.
gem 'sdoc', '~> 0.4.0', group: :doc
gem 'devise'
gem 'rails_12factor', group: :production
gem 'twitter-bootstrap-rails'
gem 'simple_form'
gem 'puma'
gem 'omniauth-facebook'
gem 'omniauth-google-oauth2'
gem 'font-awesome-rails'
gem 'bootstrap-social-rails'
# Use ActiveModel has_secure_password
# gem 'bcrypt', '~> 3.1.7'
# Use Unicorn as the app server
# gem 'unicorn'
# Use Capistrano for deployment
# gem 'capistrano-rails', group: :development
group :production, :staging do
gem 'pg'
gem 'rails_12factor'
end
group :development, :test do
# Call 'byebug' anywhere in the code to stop execution and get a debugger console
gem 'byebug'
# Access an IRB console on exception pages or by using <%= console %> in views
gem 'web-console', '~> 2.0'
# Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
gem 'spring'
end
它把自己固定在希罗库身上。我不知道这是怎么发生的。我什么也没变。这可能是一个令人耳目一新的问题。不管怎样,都解决了。
Rails.application.configure do
config.serve_static_files = true
config.serve_static_assets = true
config.cache_classes = false
config.eager_load = false
config.consider_all_requests_local = false
config.action_controller.perform_caching = false
config.serve_static_files = ENV['RAILS_SERVE_STATIC_FILES'].present?
config.assets.js_compressor = :uglifier
config.assets.compile = true
config.assets.digest = true
config.log_level = :debug
config.i18n.fallbacks = true
config.active_support.deprecation = :notify
config.log_formatter = ::Logger::Formatter.new
config.active_record.dump_schema_after_migration = false
end
/*
* Unimportant comments
*
*= require_tree .
*= require_self
*= require font-awesome
*= require bootstrap-social
*/
source 'https://rubygems.org'
ruby '2.2.0'
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '4.2.0'
# Use postgresql as the database for Active Record
gem 'pg'
# Use SCSS for stylesheets
gem 'sass-rails', '~> 5.0'
# Use Uglifier as compressor for JavaScript assets
gem 'uglifier', '>= 1.3.0'
# Use CoffeeScript for .coffee assets and views
gem 'coffee-rails', '~> 4.1.0'
# See https://github.com/sstephenson/execjs#readme for more supported runtimes
# gem 'therubyracer', platforms: :ruby
gem 'turbolinks'
# Use jquery as the JavaScript library
gem 'jquery-rails'
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
gem 'jbuilder', '~> 2.0'
# bundle exec rake doc:rails generates the API under doc/api.
gem 'sdoc', '~> 0.4.0', group: :doc
gem 'devise'
gem 'rails_12factor', group: :production
gem 'twitter-bootstrap-rails'
gem 'simple_form'
gem 'puma'
gem 'omniauth-facebook'
gem 'omniauth-google-oauth2'
gem 'font-awesome-rails'
gem 'bootstrap-social-rails'
# Use ActiveModel has_secure_password
# gem 'bcrypt', '~> 3.1.7'
# Use Unicorn as the app server
# gem 'unicorn'
# Use Capistrano for deployment
# gem 'capistrano-rails', group: :development
group :production, :staging do
gem 'pg'
gem 'rails_12factor'
end
group :development, :test do
# Call 'byebug' anywhere in the code to stop execution and get a debugger console
gem 'byebug'
# Access an IRB console on exception pages or by using <%= console %> in views
gem 'web-console', '~> 2.0'
# Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
gem 'spring'
end