2016-06-18 9 views
0

heroku에 내 앱을 배포하려고하지만 업데이트 된 Gemfile.lock을 버전 제어에 추가하라고합니다. 로그는 : 그것은 업데이트 된 Gemfile.lock를 추가하라고 요구하지만, 아직도 내가 그것을 삭제하고 새로 생성 할 때 작동하지 않습니다heroku에 배포 할 수 없습니다.

remote: -----> Fetching set buildpack https://github.com/ello/heroku-buildpack-imagemagick... done 
remote: -----> ImageMagick app detected 
remote: -----> Install ImageMagick 
remote: -----> Extracting ImageMagick /app/tmp/cache/imagemagick.tar.gz => /tmp/build_397f5ab6d29af054b826b2a1303ae32b/vendor 
remote: -----> Writing policy file 
remote: -----> Updating environment variables 
remote: -----> Using set buildpack heroku/ruby 
remote: -----> Ruby app detected 
remote: -----> Compiling Ruby/Rails 
remote: -----> Using Ruby version: ruby-2.2.0 
remote: -----> Installing dependencies using bundler 1.11.2 
remote:  Running: bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin -j4 --deployment 
remote:  You are trying to install in deployment mode after changing 
remote:  your Gemfile. Run `bundle install` elsewhere and add the 
remote:  updated Gemfile.lock to version control. 
remote:  You have added to the Gemfile: 
remote:  * source: 

. 나는 다양한 S.O.에 언급 된 해결책을 시도했다. 질문은 있지만 그들 중 누구도 나를 위해 일하지 않습니다. 또한 나는 연출하고 헌신했습니다.

+0

보이는 당신의 응용 프로그램을 배포하는 모든 명령을 시도합니다. 그 외에도 히로쿠 로그를 추가 할 수 있다면 문제를 쉽게 평가할 수 있습니다. –

답변

0

gemfile.lock을 git에 위임 한 것처럼 보입니다. 당신이 그것을 저 지르 었는지 확인하십시오. 당신이 수정 표시됩니다

2) 1) 힘내 상태 : 당신이 Heroku가 Gemfile.lock에 배포 할 경우

단계 필요 Gemfile.lock

3) 자식은 Gemfile.lock를 저지 - m "코멘트"

4) 자식 푸시 기원 "지점 이름"

5)이 지점에 배포하려고합니다.

+0

이미 완료되었습니다 –

+0

번들 업데이트로 시도한 다음 ur Gemfile.lock을 커밋하십시오 –

+0

예, 어떻게해야합니까? –

0

bundle install을 실행하면 gemfile.lock이 자동으로 생성됩니다. Gemfile.lock은 모든 버전의 기록을 유지하는 파일이며 설치 한 보석은 처음에 bundle install을 실행할 때 생성되며 이후에 동일한 명령을 실행할 때 gemfile.lock을 검사하여 확인합니다 어떤 버전이고 설치 될 보석은 무엇입니까? 당신이 bundle install을 실행하면

그런 다음 배포 프로세스의 모든 메시지를 업로드하지 않은 것처럼

git init 

git add . 

git commit -am "some comment" 

git push heroku master 
+0

이미 완료했습니다. –

관련 문제