2012-06-15 68 views
0

在我的机器上创建Rails应用程序并将项目推送到github,但无法在Heroku上部署应用程序。不兼容的问题消失了,但sqlite问题依然存在。我刚刚更新了错误和gem文件如下。请帮帮我!Bundler无法找到兼容版本的宝石“railties”

错误:

  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 [email protected]:blazing-mountain-6037.git 
! [remote rejected] master -> master (pre-receive hook declined) 
error: failed to push some refs to '[email protected]:blazing-mountain-6037.git' 

我的宝石文件:

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 
+0

哪个版本的上打包机在开发机器上使用吗? – stephenmurdoch

+0

PS - 值得一提的是,Heroku现在正在经历潜在的[平台问题](https://status.heroku.com/)。即使他们自己的网站已关闭。几乎所有我知道的heroku应用程序目前都处于关闭状态,包括[理查德道金斯基金会](http://richarddawkinsfoundation.org/)网站和[RailsTutorial](http://railstutorial.org/)。你做了什么?你破了它;)我以前从未在他们的网络上看到过这种级别的停机。 – stephenmurdoch

回答

1

尝试使用导轨3.2.6,升级到打捆您1.2.0.pre开发计算机

+0

现在我得到这个错误 安装sqlite3(1.3.6)时发生错误,并且Bundler不能在012ntntinue。 确保'gem install sqlite3 -v'1.3.6''捆绑成功。 ! !无法通过Bundler安装宝石。 ! ! Heroku推拒绝,未能编译Ruby/rails应用程序 要[email protected]:blazing-mountain-6037.git ! [远程拒绝]主控 - >主控(预接收钩拒绝) 错误:未能推送一些文件到'[email protected]:blazing-mountain-6037.git' – user451587

+0

嗯,Heroku不应该给你一个错误关于sqlite,如果你在开发组中有它,并且它们正在运行'bundle --without development:test',我从你的日志中看到它们是。很奇怪。 – stephenmurdoch

+0

在推送到heroku之前,你是否运行'bundle update rails'并执行'git commit -am'bundling''?如果没有,那么他们将创建他们自己的Gemfile.lock,并且这个过程有可能会忽略他们自己的指令,在没有开发和测试环境的情况下进行捆绑。 – stephenmurdoch

相关问题