heroku logs --tail --app アプリ名
した後のターミナル文です
2021-04-28T10:12:05.578256+00:00 app[api]: Starting process with command `rails db:migrate` by user メールアドレス 2021-04-28T10:12:10.545982+00:00 heroku[run.1203]: Awaiting client 2021-04-28T10:12:10.566791+00:00 heroku[run.1203]: Starting process with command `rails db:migrate` 2021-04-28T10:12:10.693519+00:00 heroku[run.1203]: State changed from starting to up 2021-04-28T10:12:17.371660+00:00 heroku[run.1203]: Process exited with status 0 2021-04-28T10:12:17.431771+00:00 heroku[run.1203]: State changed from up to complete 2021-04-28T16:17:40.000000+00:00 app[api]: Build started by user メールアドレス 2021-04-28T16:17:44.000000+00:00 app[api]: Build failed -- check your build output: https://dashboard.heroku.com/apps/cbcd8271-858f-4b81-82a9-dc347d5e57c9/activity/builds/fb48bd44-74c9-417a-91a3-624b4a7c8e18 2021-04-29T10:19:22.000000+00:00 app[api]: Build started by user メールアドレス 2021-04-29T10:19:25.000000+00:00 app[api]: Build failed -- check your build output: https://dashboard.heroku.com/apps/cbcd8271-858f-4b81-82a9-dc347d5e57c9/activity/builds/62ddee4c-f9b9-4597-89d5-685a0f311215
git push heroku masterの結果です
自分のrailsのバージョンに合わせて環境構築しようとして
$ heroku buildpacks:add heroku/nodejs
$ heroku buildpacks:add heroku/ruby
を実行したんですがエラーが変わりませんでした。
numerating objects: 264, done. Counting objects: 100% (243/243), done. Delta compression using up to 8 threads Compressing objects: 100% (199/199), done. Writing objects: 100% (202/202), 23.39 KiB | 1.67 MiB/s, done. Total 202 (delta 137), reused 0 (delta 0) remote: Compressing source files... done. remote: Building source: remote: remote: -----> Building on the Heroku-18 stack remote: -----> Using buildpacks: remote: 1. https://github.com/bundler/heroku-buildpack-bundler2 remote: 2. heroku/nodejs remote: 3. heroku/ruby remote: -----> Ruby app detected remote: /tmp/codon/tmp/buildpacks/39f112f50b07a72959c8a346ce561f7cb404a86c/bin/compile: line 3: heroku/ruby: No such file or directory remote: This buildpack is no longer supported, please use which now supports Bundler 2 directly remote: ! Push rejected, failed to compile Ruby app. remote: remote: ! Push failed remote: ! remote: ! ## Warning - The same version of this code has already been built: cfa1924a3c6eb6390f2dd8f4e559df759a2c4a1b remote: ! remote: ! We have detected that you have triggered a build from source code with version cfa1924a3c6eb6390f2dd8f4e559df759a2c4a1b remote: ! at least twice. One common cause of this behavior is attempting to deploy code from a different branch. remote: ! remote: ! If you are developing on a branch and deploying via git you must run: remote: ! remote: ! git push heroku <branchname>:main remote: ! remote: ! This article goes into details on the behavior: remote: ! https://devcenter.heroku.com/articles/duplicate-build-version remote: remote: Verifying deploy... remote: remote: ! Push rejected to アプリ名. remote: To https://git.heroku.com/アプリ名.git ! [remote rejected] master -> master (pre-receive hook declined) error: failed to push some refs to 'https://git.heroku.com/アプリ名.git'
heroku buildpacksした結果です。
=== アプリ名 Buildpack URLs 1. https://github.com/bundler/heroku-buildpack-bundler2 2. heroku/nodejs 3. heroku/ruby
buildpacksをクリアしてだいぶエラーが解消したのですが
remote: To see why this extension failed to compile, please check the mkmf.log which can remote: be found here: remote: remote: /tmp/build_22c3adf4/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/sqlite3-1.3.13/mkmf.log remote: remote: extconf failed, exit code 1 remote: remote: Gem files will remain installed in remote: /tmp/build_22c3adf4/vendor/bundle/ruby/2.6.0/gems/sqlite3-1.3.13 for inspection. remote: Results logged to remote: /tmp/build_22c3adf4/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/sqlite3-1.3.13/gem_make.out remote: remote: An error occurred while installing sqlite3 (1.3.13), and Bundler cannot remote: continue. remote: Make sure that `gem install sqlite3 -v '1.3.13' --source remote: 'https://rubygems.org/'` succeeds before bundling. remote: remote: In Gemfile: remote: sqlite3 remote: remote: ! remote: ! Failed to install gems via Bundler. remote: ! Detected sqlite3 gem which is not supported on Heroku: remote: ! https://devcenter.heroku.com/articles/sqlite3 remote: ! remote: ! Push rejected, failed to compile Ruby app. remote: remote: ! Push failed remote: ! remote: ! ## Warning - The same version of this code has already been built: cfa1924a3c6eb6390f2dd8f4e559df759a2c4a1b remote: ! remote: ! We have detected that you have triggered a build from source code with version cfa1924a3c6eb6390f2dd8f4e559df759a2c4a1b remote: ! at least twice. One common cause of this behavior is attempting to deploy code from a different branch. remote: ! remote: ! If you are developing on a branch and deploying via git you must run: remote: ! remote: ! git push heroku <branchname>:main remote: ! remote: ! This article goes into details on the behavior: remote: ! https://devcenter.heroku.com/articles/duplicate-build-version remote: remote: Verifying deploy... remote: remote: ! Push rejected to アプリ名. remote: To https://git.heroku.com/アプリ名.git ! [remote rejected] master -> master (pre-receive hook declined) error: failed to push some refs to 'https://git.heroku.com/アプリ名.git'
brew install postgresqlを実行してpostgresqlをインストールした後にbrew services start postgresqlwで起動してその後にgit push heroku masterを実行したんですがエラー文が変わリませんでした。
何が問題か全くわかりません、どなたかご教授ください。