在heroku上部署rails app时出错

时间:2013-07-19 10:18:01

标签: ruby-on-rails rubygems

您好我正在尝试从ruby.railstutorial.org学习ruby on rails并且在我的应用程序部署到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

我的红宝石-v是     ruby 1.9.3p0(2011-10-30修订版33570)[x86_64-linux] 和铁路-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一个错误?

0 个答案:

没有答案