gpt4 book ai didi

ruby-on-rails - 找不到“twitter/bootstrap/responsive.less”

转载 作者:数据小太阳 更新时间:2023-10-29 06:37:54 24 4
gpt4 key购买 nike

我正在尝试将我的应用程序移动到另一台服务器,但我目前遇到以下错误。

'twitter/bootstrap/responsive.less' wasn't found (in /home/rails/**/app/assets/stylesheets/bootstrap_and_overrides.css.less)

我的 gemfile 中没有 :assets block ——因此之前针对此问题的解决方案不适用于我的情况。

这是我的 Gemfile

source 'https://rubygems.org'

# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '4.1.1'
# Use sqlite3 as the database for Active Record
gem 'sqlite3'
# Use SCSS for stylesheets
#gem 'sass-rails', '~> 4.0.3'
# Use Uglifier as compressor for JavaScript assets
gem 'uglifier', '>= 1.3.0'
# Use CoffeeScript for .js.coffee assets and views
gem 'coffee-rails', '~> 4.0.0'
# See https://github.com/sstephenson/execjs#readme for more supported runtimes
# gem 'therubyracer', platforms: :ruby

# Use jquery as the JavaScript library
gem 'jquery-rails'
# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks
gem 'turbolinks'
# 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'

# Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
gem 'spring'

#For User Management
gem 'devise'
gem 'cancan'
gem 'rolify'

#For adding attachments
gem 'paperclip', github: 'thoughtbot/paperclip'

#For Bootstrap
gem 'therubyracer'
gem 'less-rails'
gem 'twitter-bootstrap-rails'
gem 'bootstrap_form'

gem 'debugger'

# 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'

# Use debugger
#gem 'debugger'

感谢任何帮助!我或多或少对这个错误一无所知。

附加说明:我的应用程序在我当前的服务器上正常运行,但我无法让它在我的新服务器上运行一次,我已经尝试以相同的方式安装它。

最佳答案

当我没有在我的 gemfile 中指定特定版本时,我无意中将 twitter-bootstrap-rails 更新到了 3.2.0。以前的版本是 2.2.8,我回滚到现在一切正常。新版本缺少 responsive.less 文件。

关于ruby-on-rails - 找不到“twitter/bootstrap/responsive.less”,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25513835/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com