Heroku部署了“无效的RUBY_VERSION指定”,昨天工作

时间:2012-05-08 16:57:06

标签: ruby-on-rails deployment heroku ruby-on-rails-3.2

我昨天能够部署到heroku就好了。我们在带有rails 3.2应用程序的雪松堆栈上。当我部署它给我这个:

$ git push -f heroku-ab-staging  tmp-heroku-deploy-gochez_heroku_test-2012-05-08-10-43-39:master
Counting objects: 222, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (162/162), done.
Writing objects: 100% (191/191), 112.28 KiB, done.
Total 191 (delta 45), reused 13 (delta 0)

-----> Heroku receiving push
-----> Ruby/Rails app detected
 !
 !     Invalid RUBY_VERSION specified: fatal:-Not-a-git-repository:-'.'-fatal:-Not-a-git-repository:-'.'-fatal:-Not-a-git-repository:-'.'-No-ruby-version-specified
 !     Valid versions: ruby-1.9.3-p0, ruby-1.9.3-p125, rbx-1.2.4, rbx-2.0.0dev-20120115-1.9, rbx-2.0.0dev-20120115-1.8, rbx-2.0.0dev-20120123-1.9, rbx-2.0.0dev-20120123-1.8, ruby-1.9.2-p290, jruby-1.6.5.1, jruby-1.6.7, ruby-1.9.3, ruby-1.9.2
 !
 !     Heroku push rejected, failed to compile Ruby/rails app

To git@heroku.com:myapp.git
 ! [remote rejected] tmp-heroku-deploy-gochez_heroku_test-2012-05-08-10-43-39 -> master (pre-receive hook declined)
error: failed to push some refs to 'git@heroku.com:myapp.git'

(请注意,出于隐私问题,我将我的真实应用名称更改为myapp

知道可能导致这种情况的原因是什么?昨天工作得很好。我可以通过什么调试来找出问题所在?

1 个答案:

答案 0 :(得分:2)

我们更改了您正在使用的未记录的API并发布了正式版ruby支持:http://blog.heroku.com/archives/2012/5/9/multiple_ruby_version_support_on_heroku/您现在需要使用Bundler 1.2.0 +。如果您有疑问,请告诉我。