2012-05-08 13 views
3

我昨天能夠部署到heroku就好了。我們正在使用rails 3.2應用程序的雪松堆棧。當我部署它給了我這樣的:Heroku部署「無效的RUBY_VERSION指定」,昨天工作

$ 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 [email protected]: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 '[email protected]:myapp.git' 

(請注意,我改變了我的真正的應用程序的名稱爲myapp隱私問題)

任何想法可能會導致什麼呢?昨天工作得很好。我可以執行哪些調試來找出問題所在?

+0

你使用的是什麼版本的'ruby'?它說: '有效版本:ruby-1.9.3-p0,ruby-1.9.3-p125,...' –

+0

'ruby 1.9.2p290(2011-07-09修訂版32553)[x86_64-darwin10.6.0] '這就是我在本地進行部署時......(它在列表中)......它從哪裏得到這個RUBY_VERSION?因爲它沒有看我的* local * ruby​​版本來定義在heroku服務器上使用什麼,對吧? – nzifnab

+0

RUBY_VERSION是一個heroku配置變量,通過'heroku config'查看它是否被設置。 –

回答