2014-11-10 3 views
1

다음 Ruby 버전을 사용하고 있습니다 : ruby-1.9.3-p36. rvm을 실행하면이 오류가 발생하지만Heroku에 배포 할 때 루비 버전 문제가 발생했습니다.

$ rvm list 
Warning! PATH is not properly set up, '/Users/user/.rvm/gems/ruby-1.9.3-p362/bin' is not at first place, 
    usually this is caused by shell initialization files - check them for 'PATH=...' entries, 
    it might also help to re-add RVM to your dotfiles: 'rvm get stable --auto-dotfiles', 
    to fix temporarily in this shell session run: 'rvm use ruby-1.9.3-p362'. 

rvm rubies 

    ruby-1.9.3-p327 [ x86_64 ] 
=* ruby-1.9.3-p362 [ x86_64 ] 
    ruby-2.0.0-rc1 [ x86_64 ] 

난 그냥 Heroku가 배포 내가 응용 프로그램 오류를 얻을 :

ruby-1.9.3-p550 is not installed. 
To install do: 'rvm install ruby-1.9.3-p550' 

왜에게 Heroku는 'P550'을 사용하려고?

+1

을 - 그거 했니? – Anthony

+0

예 루비가 '1.9.3'인데 'p550'을 지정할 수 없습니다 – Lut

+0

https://devcenter.heroku.com/articles/ruby-support – max

답변

1

루비는 사용할 수있는 루비 버전과 패치 레벨이 제한되어 있습니다. 목록은 the support pages입니다. 그 중

는 MRI ruby-1.9.3-p550하지만하지 p362

첫 번째 단계는 로컬 p550를 설치해야한다 :

$ rvm install ruby-1.9.3-p550 

당신은 당신의 Gemfile 루비 요구 사항에 patchlevel을 추가하여 패치 레벨의 missmatches에 대해 경고하기 위해 들러를 얻을 수 있습니다 .

ruby '1.9.3', :patchlevel => '550' 

당신이 .ruby-version 파일을 추가하여 프로젝트 디렉토리로 변경할 때 자동으로 올바른 루비 버전으로 전환하는 RVM을 얻을 수 있습니다 : Heroku가 당신이 당신의`Gemfile`에 루비 버전을 추가 제안

$ echo ruby-1.9.3-p550 > .ruby-version 
관련 문제