嗨,我试图从 ruby.railstutorial.org 学习 ruby on rail,但在我的应用程序在 heroku 上部署时卡住了。当我运行时
heroku run rake db:migrate
我收到此错误:
Running `rake db:migrate` attached to terminal... up, run.3917
/usr/bin/env: ruby1.9.1: No such file or directory
我的 ruby -v 是 ruby 1.9.3p0(2011-10-30 修订版 33570)[x86_64-linux] 和 rails -v Rails 4.0.0
这是我的 Gemfile
source 'https://rubygems.org'
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '4.0.0'
# Use sqlite3 as the database for Active Record
#gem 'sqlite3'
group :development do
gem 'sqlite3', '1.3.7'
gem 'rspec-rails', ">= 2.0.0.beta"
end
group :doc do
gem 'sdoc', '0.3.20', require: false
end
# Use SCSS for stylesheets
gem 'sass-rails', '~> 4.0.0'
# Use Uglifier as compressor for JavaScript assets
gem 'uglifier', '>= 1.3.0'
# Use CoffeeScript for .js.coffee assets and views
gem 'coffee-rails', '~> 4.0.0'
# See https://github.com/sstephenson/execjs#readme for more supported runtimes
# gem 'therubyracer', platforms: :ruby
# Use jquery as the JavaScript library
gem 'jquery-rails'
# Turbolinks makes following links in your web application faster.
gem 'turbolinks'
group :test do
gem 'selenium-webdriver', '2.0.0'
gem 'capybara', '2.1.0'
end
group :production do
gem 'pg', '0.15.1'
gem 'rails_12factor', '0.0.2'
end
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
gem 'jbuilder', '~> 1.2'
当我使用 1.9.3 时,为什么它给 ruby 1.9.1 一个错误?