0

我遇到的问题与此处发现的问题没有什么不同但是,我的 gemfile 确实有他们发布的解决方案,我没有任何

我正在尝试运行命令“git push heroku master”

结果,Heroku 给了我一个错误,说:

Invalid ruby_version specified: there was an error in your gemfile and bundler cannot      continue. Valid versions: (list of versions)

这是我的gemfile,错误应该在哪里(?)

source 'https://rubygems.org'
ruby '1.9.3'

require 'rubygems'
require 'mongo'
source 'http://gemcutter.org'
gem 'rails', '3.2.13'
gem "mongo_mapper"
gem 'pg'
# Bundle edge Rails instead:
# gem 'rails', :git => 'git://github.com/rails/rails.git'

#gem 'sqlite3'


group :production do
  gem 'pg'
  gem 'rails_12factor', '0.0.2'
end
# Gems used only for assets and not required
# in production environments by default.
group :assets do
  gem 'sass-rails',   '~> 3.2.3'
  gem 'coffee-rails', '~> 3.2.1'

  # See https://github.com/sstephenson/execjs#readme for more supported runtimes
  # gem 'therubyracer', :platforms => :ruby

  gem 'uglifier', '>= 1.0.3'
end

gem 'jquery-rails'

# 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'

我用 cmd 'ruby -v' 仔细检查了我的版本,然后我返回了 'ruby 1.9.3p392'

接受的列出版本之一是 1.9.3,所以我不确定 heroku 在哪里看到冲突/无效的版本。我已经查看了许多关于此的 stackoverflow 问题,但它们似乎并没有帮助/改变这种情况

4

0 回答 0