前提・実現したいこと
git push heroku master 出来るようにしたいです。
railsアプリをherokuにデプロイしたくて「git push heroku master」したところ、以下のエラーが出ました。
発生している問題・エラーメッセージ
remote: Building source: remote: remote: -----> Building on the Heroku-20 stack remote: -----> Determining which buildpack to use for this app 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: -----> Installing bundler 2.2.21 remote: -----> Removing BUNDLED WITH version in the Gemfile.lock remote: -----> Compiling Ruby/Rails remote: -----> Using Ruby version: ruby-2.7.4 remote: -----> Installing dependencies using bundler 2.2.21 remote: Running: BUNDLE_WITHOUT='development:test' BUNDLE_PATH=vendor/bundle BUNDLE_BIN=vendor/bundle/bin BUNDLE_DEPLOYMENT=1 bundle install -j4 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: If this is a development machine, remove the /tmp/build_610fcebe/Gemfile freeze remote: by running ``. remote: remote: The list of sources changed remote: remote: You have added to the Gemfile: remote: * source: https://github.com/manfe/refile.git remote: remote: You have deleted from the Gemfile: remote: * source: git://github.com/manfe/refile.git remote: Bundler Output: 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: If this is a development machine, remove the /tmp/build_610fcebe/Gemfile freeze remote: by running ``. remote: remote: The list of sources changed remote: remote: You have added to the Gemfile: remote: * source: https://github.com/manfe/refile.git remote: remote: You have deleted from the Gemfile: remote: * source: git://github.com/manfe/refile.git remote: remote: ! remote: ! Failed to install gems via Bundler. remote: ! remote: ! Push rejected, failed to compile Ruby app. remote: remote: ! Push failed
試したこと
・bundle install
・Bundlerのバージョン変更 等
補足情報(FW/ツールのバージョンなど)
ruby 2.6.3
Bundler 2.0.1
Rails 5.2.6
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。