0
0

More than 1 year has passed since last update.

デプロイデプロイデプロイデプロイ出来ない出来ない出来ない出来た!

Posted at

いやーデプロイにまた時間を取られましたが解決出来たので

今回のエラー

qiita.rb

$ git push heroku
remote:  !   Failed to install gems via Bundler.
              Bundler経由でgemをインストールできませんでした。)

remote:  !   Push rejected, failed to compile Ruby app.
           (プッシュが拒否され、Rubyアプリのコンパイルに失敗しました。)

remote:  ! ## Warning - The same version of this code has already been built: 
          ##警告-このコードの同じバージョンがすでにビルドされています:)

remote:  !   This article goes into details on the behavior:
            (この記事では、動作について詳しく説明します。)

remote:  !     https://devcenter.heroku.com/articles/duplicate-build-version

こんな感じで丁寧に説明されたので、上記の記事を読みながら進めていきました。

初めに、Gemfile.look内のBUNDLE WITHのバージョンと$ bundler -vを叩いた時に出るバージョンは同じか確かめる
これ結構重要です

同じでしたか?

次に、$ git statusを叩いてmodified: (変更)があるか確認します
あれば、$ git add -A

もう一度$ git statusを叩き、modified: (変更)になっているか確認
$ git commit -m “code”を叩く

$ git pushをして、Bitbucket(GitHub)へぶち込みます
さあリベンジだ…!

$ git push heroku

無事 Build succeeded!

herokuにデプロイ完了。

参考にした記事(上記のエラーに書いてあるurlです)
https://devcenter.heroku.com/articles/duplicate-build-version

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0