![](/img/trans.png)
[英]Getting error 'Bundler could not find compatible versions for gem “railties”'
[英]Bundler could not find compatible versions for gem “railties”
在我的機器上創建一個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'` 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'
我的寶石文件:
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
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.