2012-06-15 63 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

相關問題