0

我想在我的 heroku 应用程序上使用 ruby​​ 1.9.3 并遵循本指南https://devcenter.heroku.com/articles/ruby-versions

ruby '1.9.3'我按照指示在我的 gemfile 中设置

部署我的应用程序时,日志告诉我

-----> Using Ruby version: ruby-2.0.0

...

-----> WARNINGS:
       you have not declared a Ruby version in your Gemfile.
       To set your Ruby version add this line to your Gemfile:"
       ruby '2.0.0'"

我还按照页面上的故障排除说明将路径更改为 ATH=bin:vendor/bundle/ruby/1.9.3/bin:/usr/local/bin:/usr/bin:/bin 然后

heroku run ruby -v告诉我

ruby 2.0.0p195 (2013-05-14 revision 40734) [x86_64-linux]

现在完全不知道还能做什么。

谢谢你的帮助。

宝石文件:

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

gem 'rails', '3.2.11'


# Bundle edge Rails instead:
# gem 'rails', :git => 'git://github.com/rails/rails.git'

group :development, :test do
  gem 'sqlite3'
end

group :production do
  gem 'pg'
end


gem "paperclip", "~> 3.0"
gem 'aws-sdk'
gem 'omniauth-facebook', '1.4.0'

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

0 回答 0