課題でgithubにある既存のリポジトリを
git clone -b main app名
でクローンしました。
heroku createでherokuにデプロイして
gemfileを少し修正をした後、heroku openしました。
しかし下記のようなエラーが出ました。
Application error
An error occurred in the application and your page could not be served. If you are the application owner, check your logs for details. You can do this from the Heroku CLI with the command
heroku logs --tail
heroku logs --tailをターミナルで実行すると下記のようなログが流れました。
Build failed -- check your build output: に続くurlにあるエラーを解決しようと
https://qiita.com/johnslith/items/bddc9032e03a411d0944
https://qiita.com/m6mmsf/items/fb8a8672df98bdb59c9c
https://qiita.com/sakashi/items/6b345fd558802c77083c
の記事を参考に修正をしましたが同じエラーログになります。
エラーの詳細を確認しようと
heroku run consoleをしても
irb(main):001:0>
と出てくるだけでどうしたらいいかわかりません。
git cloneできないような設定になっているとかありますか。
2022-09-01T07:43:10.202703+00:00 app[api]: Initial release by user 2022-09-01T07:43:10.202703+00:00 app[api]: Release v1 created by user 2022-09-01T07:43:10.359543+00:00 app[api]: Enable Logplex by user 2022-09-01T07:43:10.359543+00:00 app[api]: Release v2 created by user 2022-09-01T07:45:33.000000+00:00 app[api]: Build started by user 2022-09-01T07:47:36.000000+00:00 app[api]: Build failed -- check your build output: https://dashboard.heroku.com/apps/99577ef3-3448-43dd-b1f0-f3c0f1b35e34/activity/builds/cfc9c502-def0-44e7-81ba-e950eb458191 2022-09-01T07:49:16.000000+00:00 app[api]: Build started by user 2022-09-01T07:49:50.000000+00:00 app[api]: Build failed -- check your build output: https://dashboard.heroku.com/apps/99577ef3-3448-43dd-b1f0-f3c0f1b35e34/activity/builds/e56e63cd-2f32-4730-97ee-82dcf80a0915 2022-09-01T07:50:26.000000+00:00 app[api]: Build started by user 2022-09-01T07:52:43.000000+00:00 app[api]: Build failed -- check your build output: https://dashboard.heroku.com/apps/99577ef3-3448-43dd-b1f0-f3c0f1b35e34/activity/builds/436baa0c-d013-477a-89ac-a1168d7ffe55 2022-09-01T07:53:52.000000+00:00 app[api]: Build started by user 2022-09-01T07:57:14.457471+00:00 app[api]: Release v3 created by user 2022-09-01T07:57:14.457471+00:00 app[api]: Set LANG, RACK_ENV, RAILS_ENV, RAILS_LOG_TO_STDOUT, RAILS_SERVE_STATIC_FILES, SECRET_KEY_BASE config vars by user 2022-09-01T07:57:15.462189+00:00 app[api]: Running release v4 commands by user 2022-09-01T07:57:15.462189+00:00 app[api]: Attach DATABASE (@ref:postgresql-metric-31587) by user 2022-09-01T07:57:15.479368+00:00 app[api]: Release v5 created by user 2022-09-01T07:57:15.479368+00:00 app[api]: @ref:postgresql-metric-31587 completed provisioning, setting DATABASE_URL. by user 2022-09-01T07:57:15.872389+00:00 app[api]: Deploy 4a341000 by user 2022-09-01T07:57:15.872389+00:00 app[api]: Release v6 created by user 2022-09-01T07:57:15.890442+00:00 app[api]: Scaled to console@0:Free rake@0:Free web@1:Free by user 2022-09-01T07:57:22.966548+00:00 heroku[web.1]: Starting process with command `bin/rails server -p ${PORT:-5000} -e production` 2022-09-01T07:57:26.487202+00:00 app[web.1]: => Booting Puma 2022-09-01T07:57:26.487215+00:00 app[web.1]: => Rails 6.1.6.1 application starting in production 2022-09-01T07:57:26.487215+00:00 app[web.1]: => Run `bin/rails server --help` for more startup options 2022-09-01T07:57:27.469531+00:00 app[web.1]: Puma starting in single mode... 2022-09-01T07:57:27.469554+00:00 app[web.1]: * Version 3.12.6 (ruby 3.1.2-p20), codename: Llamas in Pajamas 2022-09-01T07:57:27.469555+00:00 app[web.1]: * Min threads: 5, max threads: 5 2022-09-01T07:57:27.469555+00:00 app[web.1]: * Environment: production 2022-09-01T07:57:27.469556+00:00 app[web.1]: * Daemonizing... 2022-09-01T07:57:27.597008+00:00 heroku[web.1]: Process exited with status 0 2022-09-01T07:57:27.634315+00:00 heroku[web.1]: State changed from starting to crashed 2022-09-01T07:57:27.640757+00:00 heroku[web.1]: State changed from crashed to starting 2022-09-01T07:57:33.000000+00:00 app[api]: Build succeeded 2022-09-01T07:57:34.551976+00:00 heroku[web.1]: Starting process with command `bin/rails server -p ${PORT:-5000} -e production` 2022-09-01T07:57:37.287869+00:00 app[web.1]: => Booting Puma 2022-09-01T07:57:37.287882+00:00 app[web.1]: => Rails 6.1.6.1 application starting in production 2022-09-01T07:57:37.287883+00:00 app[web.1]: => Run `bin/rails server --help` for more startup options 2022-09-01T07:57:38.345341+00:00 app[web.1]: Puma starting in single mode... 2022-09-01T07:57:38.345375+00:00 app[web.1]: * Version 3.12.6 (ruby 3.1.2-p20), codename: Llamas in Pajamas 2022-09-01T07:57:38.345375+00:00 app[web.1]: * Min threads: 5, max threads: 5 2022-09-01T07:57:38.345376+00:00 app[web.1]: * Environment: production 2022-09-01T07:57:38.345376+00:00 app[web.1]: * Daemonizing... 2022-09-01T07:57:38.468515+00:00 heroku[web.1]: Process exited with status 0 2022-09-01T07:57:38.591948+00:00 heroku[web.1]: State changed from starting to crashed 2022-09-01T07:57:43.998287+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=myapp-tan4786.herokuapp.com request_id=0eb0691b-894b-4e2f-963e-b39240292672 fwd="126.95.114.152" dyno= connect= service= status=503 bytes= protocol=https 2022-09-01T07:57:44.313019+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=myapp-tan4786.herokuapp.com request_id=ea3ce355-54d9-4b9c-a9e1-db726c09af96 fwd="126.95.114.152" dyno= connect= service= status=503 bytes= protocol=https 2022-09-01T08:02:23.000000+00:00 app[api]: Build started by user 2022-09-01T08:03:40.471026+00:00 app[api]: Release v7 created by user 2022-09-01T08:03:40.471026+00:00 app[api]: Deploy 011f7ef4 by user 2022-09-01T08:03:40.874463+00:00 heroku[web.1]: State changed from crashed to starting 2022-09-01T08:03:46.963347+00:00 heroku[web.1]: Starting process with command `bin/rails server -p ${PORT:-5000} -e production` 2022-09-01T08:03:50.009348+00:00 app[web.1]: => Booting Puma 2022-09-01T08:03:50.009358+00:00 app[web.1]: => Rails 6.1.6.1 application starting in production 2022-09-01T08:03:50.009358+00:00 app[web.1]: => Run `bin/rails server --help` for more startup options 2022-09-01T08:03:50.997215+00:00 app[web.1]: Puma starting in single mode... 2022-09-01T08:03:50.997228+00:00 app[web.1]: * Version 3.12.6 (ruby 3.1.2-p20), codename: Llamas in Pajamas 2022-09-01T08:03:50.997229+00:00 app[web.1]: * Min threads: 5, max threads: 5 2022-09-01T08:03:50.997230+00:00 app[web.1]: * Environment: production 2022-09-01T08:03:50.997230+00:00 app[web.1]: * Daemonizing... 2022-09-01T08:03:51.123884+00:00 heroku[web.1]: Process exited with status 0 2022-09-01T08:03:52.000000+00:00 app[api]: Build succeeded 2022-09-01T08:03:52.021795+00:00 heroku[web.1]: State changed from starting to crashed 2022-09-01T08:04:03.313990+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=myapp-tan4786.herokuapp.com request_id=a53237d2-dad3-4d73-9bb9-b7b0577caebc fwd="126.95.114.152" dyno= connect= service= status=503 bytes= protocol=https 2022-09-01T08:04:03.629105+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=myapp-tan4786.herokuapp.com request_id=3da534da-c8cb-4b9f-97d3-31374a66c335 fwd="126.95.114.152" dyno= connect= service= status=503 bytes= protocol=https 2022-09-01T08:04:34.413428+00:00 heroku[web.1]: State changed from crashed to starting 2022-09-01T08:04:41.206065+00:00 heroku[web.1]: Starting process with command `bin/rails server -p ${PORT:-5000} -e production` 2022-09-01T08:04:44.694442+00:00 app[web.1]: => Booting Puma 2022-09-01T08:04:44.694456+00:00 app[web.1]: => Rails 6.1.6.1 application starting in production 2022-09-01T08:04:44.694457+00:00 app[web.1]: => Run `bin/rails server --help` for more startup options 2022-09-01T08:04:45.761310+00:00 app[web.1]: Puma starting in single mode... 2022-09-01T08:04:45.761376+00:00 app[web.1]: * Version 3.12.6 (ruby 3.1.2-p20), codename: Llamas in Pajamas 2022-09-01T08:04:45.761397+00:00 app[web.1]: * Min threads: 5, max threads: 5 2022-09-01T08:04:45.761418+00:00 app[web.1]: * Environment: production 2022-09-01T08:04:45.761438+00:00 app[web.1]: * Daemonizing... 2022-09-01T08:04:45.893101+00:00 heroku[web.1]: Process exited with status 0 2022-09-01T08:04:45.945011+00:00 heroku[web.1]: State changed from starting to crashed 2022-09-01T08:04:46.502477+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=myapp-tan4786.herokuapp.com request_id=d07e2a01-c8fb-4f4e-a2c4-8fb40fb00be8 fwd="126.95.114.152" dyno= connect= service= status=503 bytes= protocol=https 2022-09-01T08:04:46.799957+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=myapp-tan4786.herokuapp.com request_id=e1a7c54c-7a65-4421-80e6-efc04c9c5af4 fwd="126.95.114.152" dyno= connect= service= status=503 bytes= protocol=https
0 コメント