Ruby on rails Bundler找不到gem的兼容版本;铁路公司“;
在我的机器上创建Rails应用程序并将项目推送到github,但无法在Heroku上部署该应用程序。不兼容的问题消失了,但sqlite问题仍然存在。我刚刚更新了错误和gem文件,如下所示。请帮帮我 错误:Ruby on rails Bundler找不到gem的兼容版本;铁路公司“;,ruby-on-rails,Ruby On Rails,在我的机器上创建Rails应用程序并将项目推送到github,但无法在Heroku上部署该应用程序。不兼容的问题消失了,但sqlite问题仍然存在。我刚刚更新了错误和gem文件,如下所示。请帮帮我 错误: An error occurred while installing sqlite3 (1.3.6), and Bundler cannot co ntinue. Make sure that `gem install sqlite3 -v '1.3.6'`
An error occurred while installing sqlite3 (1.3.6), and Bundler cannot co
ntinue.
Make sure that `gem install sqlite3 -v '1.3.6'` succeeds before bundling.
!
! Failed to install gems via Bundler.
!
! Heroku push rejected, failed to compile Ruby/rails app
To git@heroku.com:blazing-mountain-6037.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'git@heroku.com:blazing-mountain-6037.git'
我的Gem文件:
source 'https://rubygems.org'
gem 'rails', '3.2.6'
# Bundle edge Rails instead:
# gem 'rails', :git => 'git://github.com/rails/rails.git'
gem 'sqlite3', '1.3.6'
# Gems used only for assets and not required
# in production environments by default.
group :assets do
gem 'sass-rails', '~> 3.2.4'
gem 'coffee-rails', '~> 3.2.2'
# See https://github.com/sstephenson/execjs#readme for more supported runtimes
# gem 'therubyracer', :platforms => :ruby
gem 'uglifier', '>= 1.2.3'
end
gem 'jquery-rails', '2.0.0'
# To use ActiveModel has_secure_password
# gem 'bcrypt-ruby', '~> 3.0.0'
# To use Jbuilder templates for JSON
# gem 'jbuilder'
# Use unicorn as the app server
# gem 'unicorn'
# Deploy with Capistrano
# gem 'capistrano'
# To use debugger
# gem 'debugger'
enter code here
尝试在开发机器上使用rails 3.2.6,并将bundler升级到1.2.0.pre在开发机器上使用哪个版本的bundler?PS-值得一提的是,Heroku现在正在体验潜力。甚至连他们自己的网站都关闭了。事实上,我所知道的每一个heroku应用程序目前都已关闭,包括网站和一个。你做了什么?你把它弄坏了;)我以前从未在他们的网络上看到过这种级别的中断。现在我遇到了这个错误,安装sqlite3(1.3.6)时出错,Bundler无法继续。在绑定之前,请确保
gem安装sqlite3-v'1.3.6'
成功!未能通过绑定器安装gems!Heroku push被拒绝,无法将Ruby/rails应用编译为git@heroku.com:blazing-mountain-6037.git![remote rejected]master->master(拒绝预接收挂钩)错误:无法将某些引用推送到'git@heroku.com:blazing-mountain-6037.git'Hmm,Heroku不应该给你一个关于sqlite的错误,如果你在你的开发组中有它,并且他们正在运行捆绑包--没有开发:test
,我从你的日志中看到,他们是。非常奇怪。在推到heroku之前,您是否运行了bundle update rails
并执行了git commit-am'bundling'
?如果没有,那么他们将创建自己的Gemfile.lock,这个过程可能会忽略他们自己的绑定指令,而没有开发和测试环境。似乎无法安装SQLITE3,因为您已经更改了原来的GEM文件。您已将您的开发组从中删除。您希望sqlite像以前一样位于组:development do
块中。这将解决这个问题。