2017-12-26 11 views
0

私はherokuを通して私のレールアプリを配備しようとしています。しかし、私が "git push heroic master"を実行するたびに、私はこれを実行します。私は周りを探索したが、何も動かないようだ。私は「バンドル更新」、「バンドルのインストール」しようとしましたが、私は「gitのは、英雄的なマスターを押す」実行したとき、私はまだ"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

関連する問題