耙子中止!找不到文件 twitter/bootstrap [英] rake aborted! couldn't find file twitter/bootstrap

查看:44
本文介绍了耙子中止!找不到文件 twitter/bootstrap的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在关注有关 ROR 3.2 的 Hartl 教程,我构建了一个在本地运行良好的简单应用程序,但是当我尝试将其部署到 heroku wit $git push heroku master 时,rake 资产:预编译失败,因为无法查找文件 twitter/bootstrap".(由 application.js 引发的错误)我已经谷歌了这个问题,但这些答案都不适合我:Heroku 部署失败后通过 twitter-bootstrap-rails gem 升级到 bootstrap 2.0.1

i'm following the Hartl tutorial about ROR 3.2, i build a simple app that works fine locally but when i try to deploy it to heroku wit $git push heroku master , the rake assets:precompile fails because "couldn't find file twitter/bootstrap". (error raised by application.js) I've already google the problem but none of these answers work for me: Heroku deploy fails after upgrading to bootstrap 2.0.1 via twitter-bootstrap-rails gem

找不到文件生产中的twitter/bootstrap"

谁能帮我找出问题所在?如果我必须附上一些文件,或者如果您需要其他信息,请告诉我.谢谢

can anyone help me to figure out the problem? If i have to attach some files, or if you needother informations please tell me. Thank you

这里是 Gemfile

here the Gemfile

gem 'rails', '3.2.6'

group :development do
gem 'sqlite3'
gem 'annotate', '~> 2.4.1.beta'
end

group :production do
  gem 'pg'
end

group :assets do
  gem 'sass-rails',   '~> 3.2.3'
  gem 'coffee-rails', '~> 3.2.1'
  gem 'twitter-bootstrap-rails', '~> 2.0.1.0'
  gem 'bootstrap-sass', '~> 2.0.3'
  gem 'uglifier', '>= 1.0.3'
end

gem 'jquery-rails'
gem 'bcrypt-ruby', '3.0.1'

推荐答案

我遇到了一个类似的问题,该问题通过将与引导程序相关的 gem 移出 gemfile 中的资产组得到了解决.将其粘贴到常规 gem 列表旁边,它应该可以正常工作.

I had a similar problem that got fixed by moving bootstrap related gems out of the assets group in gemfile. Paste it alongside the regular list of gems and it should work fine.

这篇关于耙子中止!找不到文件 twitter/bootstrap的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆