在我的機器上創建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
哪個版本的上打包機在開發機器上使用嗎? – stephenmurdoch
PS - 值得一提的是,Heroku現在正在經歷潛在的[平臺問題](https://status.heroku.com/)。即使他們自己的網站已關閉。幾乎所有我知道的heroku應用程序目前都處於關閉狀態,包括[理查德道金斯基金會](http://richarddawkinsfoundation.org/)網站和[RailsTutorial](http://railstutorial.org/)。你做了什麼?你破了它;)我以前從未在他們的網絡上看到過這種級別的停機。 – stephenmurdoch