I was able to deploy to heroku yesterday just fine. We're on the cedar stack with a rails 3.2 application. When I deploy it gives me this:
我昨天就能顺利地部署到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'
(Note that I changed my real app's name to myapp
for privacy concerns)
(注意,出于隐私考虑,我将我的真实应用的名称改为myapp)
Any idea what might be causing this? It was working just fine yesterday. What debugging can I perform to figure out what the issue is?
知道是什么引起的吗?昨天天气很好。我可以执行什么调试来找出问题所在?
1 个解决方案
#1
2
We changed the undocumented API you were using and released official version ruby support: http://blog.heroku.com/archives/2012/5/9/multiple_ruby_version_support_on_heroku/ You'll now need to use Bundler 1.2.0 +. Let me know if you have questions.
我们更改了您正在使用的未归档的API,并发布了官方版本ruby支持:http://blog.heroku.com/archives/2012/5/9/multiple_ruby_version_support_on_heroku/您现在需要使用Bundler 1.2.0 +。如果有问题,请告诉我。
#1
2
We changed the undocumented API you were using and released official version ruby support: http://blog.heroku.com/archives/2012/5/9/multiple_ruby_version_support_on_heroku/ You'll now need to use Bundler 1.2.0 +. Let me know if you have questions.
我们更改了您正在使用的未归档的API,并发布了官方版本ruby支持:http://blog.heroku.com/archives/2012/5/9/multiple_ruby_version_support_on_heroku/您现在需要使用Bundler 1.2.0 +。如果有问题,请告诉我。