1

我见过类似的问题,但没有一个回答我的问题,这个是更相似的Heroku Bundle Error (Rails App) 问题是一样的,但答案不是。控制台错误如下

-----> Ruby/Rails app detected
-----> Using Ruby version: ruby-1.9.3
-----> Installing dependencies using 
       Running: bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin --deployment
       /usr/bin/env: ruby1.9.1: No such file or directory
 !
 !     Failed to install gems via Bundler.
 !

 !     Push rejected, failed to compile Ruby/Rails app

我在我的gem文件上使用'rails','4.0.0.rc1',上面写着ruby-1.9.3

那么为什么是错误,为什么没有被推送。

任何帮助将不胜感激

4

1 回答 1

1

Could be that you are having problems with the ruby version. If you don't specify, Heroku will use the default ruby version. Until recently it was 1.93, and as of not too long ago, it is 2.0. To tell Heroku which version of ruby you want to use, simply put at the top of your gemfile (just below the source) ruby and the version. After that, include the rails gem with a version. So the top of your gemfile should look something like this, with the correct version numbers:

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

gem 'rails', '3.2.13'
于 2013-06-23T05:08:39.163 回答