2013-08-14 3 views
1

AWS에 꾸미기 응용 프로그램을 배포하려고합니다.AWS에 꾸미기 설치

Could not find rake-10.1.0 in any of the sources (Bundler::GemNotFound)

: 탄성 콩나무를 설정하고 my_project/.ebextensions에 추가 한 후 /이 난 단지이 오류 메시지를 얻기 위해, 내 응용 프로그램을 배포하는 자식 aws.push를 사용

packages: 
    yum: 
    git-core: [] 
container_commands: 
    bundle: 
    command: "gem install bundle" 
    assets: 
    command: "bundle exec rake assets:precompile" 
    db: 
    command: "bundle exec rake db:migrate" 
    leader_only: true 

파일의 .config 번들 쇼 레이크 를 사용하여 내 보석 세트

이중 검사는 저를 제공합니다

... /gems/rake-10.1.0

AWS의 로그 파일을 보면서 다음 오류를 발견했습니다.

sh: git: command not found Git error: command `git clone ' https://github.com/spree/spree.git '

내가 뭘 잘못하고 있니?

답변

7

git이 서버에 설치되어 있는지 확인해야합니다. 라는 파일을 생성

시도 :

.ebextensions/YOUR_APPLICATION_NAME.config 

이 배포의 일부로 냠와 자식을 설치합니다

packages: 
    yum: 
    git: [] 

가 포함되어 있습니다.

또 다른 옵션은 git에서 소스를 사용하지 않고 gem에서 spree를 사용하는 것입니다.

자세한 내용은 Elastic Beanstalk에 Ruby 응용 프로그램 배포에 대한 article on the AWS Blog을 확인하십시오.

+0

확실히 도움이되었습니다. 감사. 더 많은 경우, 벤더/번들에 내 보석을 설치하고 상점/공유/_print.css를 사전 컴파일하십시오. – Miotsu

+1

로컬에 보석이 설치되어 있지 않은 한 작동합니다. 이것은 좀 더 포괄적 인 대답입니다. http://stackoverflow.com/questions/13642171/elastic-beanstalk-ruby-rails-need-to-install-git-so-bundle-install-works-but-i – CarlosCervantes