2017-12-26 25 views
0

그래서 저는 heroku를 통해 레일 앱을 배포하려고합니다. 그러나 "git push heroic master"를 실행할 때마다, 나는 이것을 실행합니다. 나는 주변을 수색했으나 아무것도 작동하지 않는 것 같습니다. 나는 "번들 갱신", "번들 설치"하는 것을 시도했다, 그러나 나는 "자식이 영웅 마스터를 밀어"실행할 때 난 여전히"git push heroic master"로 오류가 발생했습니다. 어떻게해야합니까?

Counting objects: 84, done. 
Delta compression using up to 4 threads. 
Compressing objects: 100% (70/70), done. 
Writing objects: 100% (84/84), 20.65 KiB | 1.88 MiB/s, done. 
Total 84 (delta 2), reused 0 (delta 0) 
remote: Compressing source files... done. 
remote: Building source: 
remote: 
remote: !  Warning: Multiple default buildpacks reported the ability to handle this app. The first buildpack in the list below will be used. 
remote:    Detected buildpacks: Ruby,Node.js 
remote:    See https://devcenter.heroku.com/articles/buildpacks#buildpack-detect-order 
remote: -----> Ruby app detected 
remote: -----> Compiling Ruby/Rails 
remote: -----> Using Ruby version: ruby-2.3.4 
remote: -----> Installing dependencies using bundler 1.15.2 
remote:  Running: bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin -j4 --deployment 
remote:  Warning: the running version of Bundler (1.15.2) is older than the version that created the lockfile (1.16.1). We suggest you upgrade to the latest version of Bundler by running `gem install bundler`. 
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:  The dependencies in your gemfile changed 
remote:  You have added to the Gemfile: 
remote:  * pg 
remote:  Bundler Output: Warning: the running version of Bundler (1.15.2) is older than the version that created the lockfile (1.16.1). We suggest you upgrade to the latest version of Bundler by running `gem install bundler`. 
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:   
remote:  The dependencies in your gemfile changed 
remote:   
remote:  You have added to the Gemfile: 
remote:  * pg 
remote: ! 
remote: !  Failed to install gems via Bundler. 
remote: ! 
remote: !  Push rejected, failed to compile Ruby app. 
remote: 
remote: !  Push failed 
remote: Verifying deploy... 
remote: 
remote: ! Push rejected to secret-mesa-55611. 
remote: 
To https://git.heroku.com/****** 
! [remote rejected] master -> master (pre-receive hook declined) 
error: failed to push some refs to 'https://git.heroku.com/*******.git' 
+0

오류 노트로 새로운 Gemfile.lock을 체크인하고 있습니까? – Joe

+0

감사합니다! 그게 다야 – soer9606

답변

1

당신의 Gemfile.lock이 변경 될 것으로 보인다 이러한 오류가 발생합니다. Gemfile.lock을 청소 한 후 bundle install을 실행 해보십시오.

+0

gemfile.lock을 "청소"한다는 것은 무엇을 의미합니까? – soer9606

+0

Gemfile.lock에서 모든 것을 삭제하고 다시 번들로 설치한다는 의미입니다. – Parry

+0

감사합니다! 그거였다 – soer9606