2014-01-16 4 views
0

먼저 다른 오류가 많이 발생하지만 선두 오류로 시작하고 싶습니다. 좋아요. 그래서 내 프로젝트를 내 heroku 서버에 푸시하고 싶습니다. 내 응용 프로그램 디렉토리 안에 있고 내가 "자식 푸시 Heroku가 마스터"를 실행하고이 내가 모든Git Push 루비 레일의 마스터 오류

Identity added: /Users/some_ayodele/.ssh/id_rsa (/Users/some_ayodele/.ssh/id_rsa) 
Initializing repository, done. 
Counting objects: 145, done. 
Delta compression using up to 8 threads. 
Compressing objects: 100% (124/124), done. 
Writing objects: 100% (145/145), 31.06 KiB, done. 
Total 145 (delta 27), reused 0 (delta 0) 

-----> Ruby app detected 
-----> Compiling Ruby/Rails 
-----> Using Ruby version: ruby-2.0.0 
-----> Installing dependencies using Bundler version 1.5.2 
     New app detected loading default bundler cache 
     Running: bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin -j4 --deployment 
     Your Gemfile lists the gem pg (>= 0) more than once. 
     You should probably keep only one of them. 
     While it's not a problem now, it could cause errors if you change the version of just one of them later. 
     Your Gemfile lists the gem pg (>= 0) more than once. 
     You should probably keep only one of them. 
     While it's not a problem now, it could cause errors if you change the version of just one of them later. 
     Your Gemfile lists the gem jquery-rails (>= 0) more than once. 
     You should probably keep only one of them. 
     While it's not a problem now, it could cause errors if you change the version of just one of them later. 
     You are trying to install in deployment mode after changing 
     your Gemfile. Run `bundle install` elsewhere and add the 
     updated Gemfile.lock to version control. 
     You have added to the Gemfile: 
     * carrierwave 
     * rmagick 
     * heroku 
     * git-rails 
     * hoe (~> 1.5.1) 
     * RedCloth 
     * i18n 
     You have deleted from the Gemfile: 
     * thin 
     Bundler Output: Your Gemfile lists the gem pg (>= 0) more than once. 
     You should probably keep only one of them. 
     While it's not a problem now, it could cause errors if you change the version of just one of them later. 
     Your Gemfile lists the gem pg (>= 0) more than once. 
     You should probably keep only one of them. 
     While it's not a problem now, it could cause errors if you change the version of just one of them later. 
     Your Gemfile lists the gem jquery-rails (>= 0) more than once. 
     You should probably keep only one of them. 
     While it's not a problem now, it could cause errors if you change the version of just one of them later. 
     You are trying to install in deployment mode after changing 
     your Gemfile. Run `bundle install` elsewhere and add the 
     updated Gemfile.lock to version control. 

     You have added to the Gemfile: 
     * carrierwave 
     * rmagick 
     * heroku 
     * git-rails 
     * hoe (~> 1.5.1) 
     * RedCloth 
     * i18n 

     You have deleted from the Gemfile: 
     * thin 
! 
!  Failed to install gems via Bundler. 
! 

!  Push rejected, failed to compile Ruby app 

To [email protected]:desolate-temple-6370.git 
! [remote rejected] master -> master (pre-receive hook declined) 
error: failed to push some refs to '[email protected]:desolate-temple-6370.git' 
+0

Gemfile에서'pg' 보석을 여러 번 들으십니까? –

+0

아니요, 한 번 나열된 gem 'pg' –

답변

1

먼저 무엇을 얻을, 나는 포스트 그레스 여기에 문제라고 생각합니다. 나는 Heroku와 Rails 빌트인 PG가 어떤 문제를 일으킨다 고 생각한다. 다음과 같이 젬 페이지를 편집 해보십시오.

group :development, :test do 
    gem 'sqlite3' 
end 

group :production do 
    gem 'pg' 
    gem 'rails_12factor' 
end 

그런 다음 "번들 설치"를 수행하십시오.

이 "번들 --without 설치 생산"이 도움이

희망을 수행하려고 작동하지 않는 경우.

+0

그래서 내가 권고 한 다음 "번들 설치"를 수행하고 다음과 같은 "보석 메타 데이터를 가져 오는 것입니다 레이크 (10.1.1)를 설치하는 동안 오류가 발생했습니다. 번들러는 계속할 수 없습니다. 번들링 전에'gem install rake -v '10 .1.1''이 성공했는지 확인하십시오. " –

+0

'번들 설치 - 생산하지 않음'을 시도 했습니까? –

+0

이제 gemfile.lock 파일을 내 repo에 추가하지 않았으므로 번들 설치에 오류가 발생했습니다. 번들 설치를 마치면 매력처럼 작동합니다. 그때 나는 이미 그룹에 언급되어 있기 때문에 내 gemfile에서 보석 '페이지를'제거 : 생산 보석 '페이지'를 할 보석 'rails_12factor' 끝 모든 지금 덕분에 괜찮습니다! –