herokuにデプロイすると 『We're sorry, but something went wrong.If you are the application owner check the logs for more information.』になってしまいます。
解決したいこと
herokuにデプロイすると 『We're sorry, but something went wrong.If you are the application owner check the logs for more information.』が表示され、
自分の作ったアプリケーションが表示されません。
heroku logs の全体
2021-04-11T15:33:34.782373+00:00 app[web.1]: [3e08ddf7-d604-4e5d-b622-e39cee40de59]
2021-04-11T15:33:34.782374+00:00 app[web.1]: [3e08ddf7-d604-4e5d-b622-e39cee40de59] app/views/layouts/application.html.erb:9
2021-04-11T15:33:34.787004+00:00 heroku[router]: at=info method=GET path="/" host=chibaportfolio0411.herokuapp.com request_id=3e08ddf7-d604-4e5d-b622-e39cee40de59 fwd="220.221.219.111" dyno=web.1 connect=1ms service=21ms status=500 bytes=1827 protocol=https
2021-04-11T15:33:35.282946+00:00 heroku[router]: at=info method=GET path="/favicon.ico" host=chibaportfolio0411.herokuapp.com request_id=859b2885-4d60-49f9-ba76-16f9cf82f10e fwd="220.221.219.111" dyno=web.1 connect=1ms service=2ms status=200 bytes=143 protocol=https
2021-04-11T15:40:22.261007+00:00 app[web.1]: I, [2021-04-11T15:40:22.260479 #4] INFO -- : [151a6ea9-a6ce-48c9-896b-18459fad3115] Started GET "/" for 220.221.219.111 at 2021-04-11 15:40:22 +0000
2021-04-11T15:40:22.261801+00:00 app[web.1]: I, [2021-04-11T15:40:22.261735 #4] INFO -- : [151a6ea9-a6ce-48c9-896b-18459fad3115] Processing by TopController#index as HTML
2021-04-11T15:40:22.267560+00:00 app[web.1]: I, [2021-04-11T15:40:22.267486 #4] INFO -- : [151a6ea9-a6ce-48c9-896b-18459fad3115] Rendered top/index.html.erb within layouts/application (Duration: 0.1ms | Allocations: 4)
2021-04-11T15:40:22.268739+00:00 app[web.1]: I, [2021-04-11T15:40:22.268674 #4] INFO -- : [151a6ea9-a6ce-48c9-896b-18459fad3115] Rendered layout layouts/application.html.erb (Duration: 1.3ms | Allocations: 420)
2021-04-11T15:40:22.269000+00:00 app[web.1]: I, [2021-04-11T15:40:22.268940 #4] INFO -- : [151a6ea9-a6ce-48c9-896b-18459fad3115] Completed 500 Internal Server Error in 5ms (Allocations: 686)
2021-04-11T15:40:22.270583+00:00 app[web.1]: F, [2021-04-11T15:40:22.270519 #4] FATAL -- : [151a6ea9-a6ce-48c9-896b-18459fad3115]
2021-04-11T15:40:22.270584+00:00 app[web.1]: [151a6ea9-a6ce-48c9-896b-18459fad3115] ActionView::Template::Error (Webpacker can't find application.js in /app/public/packs/manifest.json. Possible causes:
2021-04-11T15:40:22.270585+00:00 app[web.1]: 1. You want to set webpacker.yml value of compile to true for your environment
2021-04-11T15:40:22.270586+00:00 app[web.1]: unless you are using the `webpack -w` or the webpack-dev-server.
2021-04-11T15:40:22.270587+00:00 app[web.1]: 2. webpack has not yet re-run to reflect updates.
2021-04-11T15:40:22.270587+00:00 app[web.1]: 3. You have misconfigured Webpacker's config/webpacker.yml file.
2021-04-11T15:40:22.270588+00:00 app[web.1]: 4. Your webpack configuration is not creating a manifest.
2021-04-11T15:40:22.270589+00:00 app[web.1]: Your manifest contains:
2021-04-11T15:40:22.270590+00:00 app[web.1]: {
2021-04-11T15:40:22.270591+00:00 app[web.1]: }
2021-04-11T15:40:22.270591+00:00 app[web.1]: ):
2021-04-11T15:40:22.270591+00:00 app[web.1]: [151a6ea9-a6ce-48c9-896b-18459fad3115] 6: <%= csrf_meta_tags %>
2021-04-11T15:40:22.270592+00:00 app[web.1]: [151a6ea9-a6ce-48c9-896b-18459fad3115] 7: <%= csp_meta_tag %>
2021-04-11T15:40:22.270593+00:00 app[web.1]: [151a6ea9-a6ce-48c9-896b-18459fad3115] 8: <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload' %>
2021-04-11T15:40:22.270593+00:00 app[web.1]: [151a6ea9-a6ce-48c9-896b-18459fad3115] 9: <%= javascript_pack_tag 'application', 'data-turbolinks-track': 'reload' %>
2021-04-11T15:40:22.270594+00:00 app[web.1]: [151a6ea9-a6ce-48c9-896b-18459fad3115] 10: <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
2021-04-11T15:40:22.270594+00:00 app[web.1]: [151a6ea9-a6ce-48c9-896b-18459fad3115] 11: <link href="https://unpkg.com/aos@2.3.1/dist/aos.css" rel="stylesheet">
2021-04-11T15:40:22.270595+00:00 app[web.1]: [151a6ea9-a6ce-48c9-896b-18459fad3115] 12: <script src="https://unpkg.com/aos@2.3.1/dist/aos.js"></script>
2021-04-11T15:40:22.270596+00:00 app[web.1]: [151a6ea9-a6ce-48c9-896b-18459fad3115]
2021-04-11T15:40:22.270596+00:00 app[web.1]: [151a6ea9-a6ce-48c9-896b-18459fad3115] app/views/layouts/application.html.erb:9
2021-04-11T15:40:22.278554+00:00 heroku[router]: at=info method=GET path="/" host=chibaportfolio0411.herokuapp.com request_id=151a6ea9-a6ce-48c9-896b-18459fad3115 fwd="220.221.219.111" dyno=web.1 connect=1ms service=17ms status=500 bytes=1827 protocol=https
2021-04-11T15:40:22.798429+00:00 heroku[router]: at=info method=GET path="/favicon.ico" host=chibaportfolio0411.herokuapp.com request_id=8ccb66bc-dc76-4757-be45-74df19b7a093 fwd="220.221.219.111" dyno=web.1 connect=1ms service=3ms status=200 bytes=143 protocol=https
2021-04-11T15:58:43.000000+00:00 app[api]: Build started by user yyyyyuta.c.i.s.0401@gmail.com
2021-04-11T15:59:45.215944+00:00 app[api]: Deploy 8dc3eac2 by user yyyyyuta.c.i.s.0401@gmail.com
2021-04-11T15:59:45.215944+00:00 app[api]: Running release v13 commands by user yyyyyuta.c.i.s.0401@gmail.com
2021-04-11T15:59:45.694061+00:00 app[api]: Starting process with command `/bin/sh -c 'if curl $HEROKU_RELEASE_LOG_STREAM --silent --connect-timeout 10 --retry 3 --retry-delay 1 >/tmp/log-stream; then
2021-04-11T15:59:45.694061+00:00 app[api]: chmod u+x /tmp/log-stream
2021-04-11T15:59:45.694061+00:00 app[api]: /tmp/log-stream /bin/sh -c '"'"'bin/rails db:migrate'"'"'
2021-04-11T15:59:45.694061+00:00 app[api]: else
2021-04-11T15:59:45.694061+00:00 app[api]: bin/rails db:migrate
2021-04-11T15:59:45.694061+00:00 app[api]: fi'` by user yyyyyuta.c.i.s.0401@gmail.com
2021-04-11T15:59:53.000000+00:00 app[api]: Build succeeded
2021-04-11T15:59:53.706992+00:00 heroku[release.6949]: Starting process with command `/bin/sh -c 'if curl https://heroku-release-output.s3.amazonaws.com/log-stream?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAJ3LIQ2SWG7V76SVQ%2F20210411%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20210411T155945Z&X-Amz-Expires=900&X-Amz-SignedHeaders=host&X-Amz-Signature=1b96286784eb6ed54b87b684649be9ab5d4a1d24ecffd405c7123433ccb41208 --silent --connect-timeout 10 --retry 3 --retry-delay 1 >/tmp/log-stream; then
2021-04-11T15:59:54.452511+00:00 heroku[release.6949]: State changed from starting to up
2021-04-11T15:59:59.593732+00:00 heroku[release.6949]: Process exited with status 0
2021-04-11T15:59:59.663262+00:00 heroku[release.6949]: State changed from up to complete
2021-04-11T16:00:00.885903+00:00 app[api]: Release v13 created by user yyyyyuta.c.i.s.0401@gmail.com
2021-04-11T16:00:01.865135+00:00 heroku[web.1]: Restarting
2021-04-11T16:00:01.871505+00:00 heroku[web.1]: State changed from up to starting
2021-04-11T16:00:03.316795+00:00 heroku[web.1]: Stopping all processes with SIGTERM
2021-04-11T16:00:03.424784+00:00 app[web.1]: - Gracefully stopping, waiting for requests to finish
2021-04-11T16:00:03.428608+00:00 app[web.1]: Exiting
2021-04-11T16:00:03.572452+00:00 heroku[web.1]: Process exited with status 143
2021-04-11T16:00:12.779186+00:00 heroku[web.1]: Starting process with command `bin/rails server -p ${PORT:-5000} -e production`
2021-04-11T16:00:19.217410+00:00 app[web.1]: => Booting Puma
2021-04-11T16:00:19.217482+00:00 app[web.1]: => Rails 6.1.3.1 application starting in production
2021-04-11T16:00:19.217482+00:00 app[web.1]: => Run `bin/rails server --help` for more startup options
2021-04-11T16:00:21.298759+00:00 app[web.1]: Puma starting in single mode...
2021-04-11T16:00:21.298811+00:00 app[web.1]: * Puma version: 5.2.2 (ruby 2.7.2-p137) ("Fettisdagsbulle")
2021-04-11T16:00:21.298812+00:00 app[web.1]: * Min threads: 5
2021-04-11T16:00:21.298812+00:00 app[web.1]: * Max threads: 5
2021-04-11T16:00:21.298812+00:00 app[web.1]: * Environment: production
2021-04-11T16:00:21.298813+00:00 app[web.1]: * PID: 4
2021-04-11T16:00:21.299344+00:00 app[web.1]: * Listening on http://0.0.0.0:38239
2021-04-11T16:00:21.310206+00:00 app[web.1]: Use Ctrl-C to stop
2021-04-11T16:00:21.717431+00:00 heroku[web.1]: State changed from starting to up
2021-04-11T16:00:22.888310+00:00 app[web.1]: I, [2021-04-11T16:00:22.887249 #4] INFO -- : [3917b026-8759-4aa2-8d9c-6ceb52082984] Started GET "/" for 220.221.219.111 at 2021-04-11 16:00:22 +0000
2021-04-11T16:00:22.891314+00:00 app[web.1]: I, [2021-04-11T16:00:22.891244 #4] INFO -- : [3917b026-8759-4aa2-8d9c-6ceb52082984] Processing by TopController#index as HTML
2021-04-11T16:00:22.901658+00:00 app[web.1]: I, [2021-04-11T16:00:22.901539 #4] INFO -- : [3917b026-8759-4aa2-8d9c-6ceb52082984] Rendered top/index.html.erb within layouts/application (Duration: 0.9ms | Allocations: 257)
2021-04-11T16:00:22.905221+00:00 app[web.1]: I, [2021-04-11T16:00:22.905137 #4] INFO -- : [3917b026-8759-4aa2-8d9c-6ceb52082984] [Webpacker] Compiling...
2021-04-11T16:00:25.304304+00:00 app[web.1]: I, [2021-04-11T16:00:25.304169 #4] INFO -- : [3917b026-8759-4aa2-8d9c-6ceb52082984] [Webpacker] Compiled all packs in /app/public/packs
2021-04-11T16:00:25.304362+00:00 app[web.1]: E, [2021-04-11T16:00:25.304297 #4] ERROR -- : [3917b026-8759-4aa2-8d9c-6ceb52082984] [Webpacker] One CLI for webpack must be installed. These are recommended choices, delivered as separate packages:
2021-04-11T16:00:25.304364+00:00 app[web.1]: - webpack-cli (https://github.com/webpack/webpack-cli)
2021-04-11T16:00:25.304365+00:00 app[web.1]: The original webpack full-featured CLI.
2021-04-11T16:00:25.304366+00:00 app[web.1]: We will use "yarn" to install the CLI via "yarn add -D".
2021-04-11T16:00:25.304366+00:00 app[web.1]: Do you want to install 'webpack-cli' (yes/no):
2021-04-11T16:00:25.304463+00:00 app[web.1]: I, [2021-04-11T16:00:25.304400 #4] INFO -- : [3917b026-8759-4aa2-8d9c-6ceb52082984] [Webpacker]
2021-04-11T16:00:25.308099+00:00 app[web.1]: I, [2021-04-11T16:00:25.308032 #4] INFO -- : [3917b026-8759-4aa2-8d9c-6ceb52082984] Rendered layout layouts/application.html.erb (Duration: 2407.5ms | Allocations: 2196)
2021-04-11T16:00:25.308528+00:00 app[web.1]: I, [2021-04-11T16:00:25.308465 #4] INFO -- : [3917b026-8759-4aa2-8d9c-6ceb52082984] Completed 500 Internal Server Error in 2417ms (Allocations: 3431)
2021-04-11T16:00:25.310203+00:00 app[web.1]: F, [2021-04-11T16:00:25.310143 #4] FATAL -- : [3917b026-8759-4aa2-8d9c-6ceb52082984]
2021-04-11T16:00:25.310204+00:00 app[web.1]: [3917b026-8759-4aa2-8d9c-6ceb52082984] ActionView::Template::Error (Webpacker can't find application.js in /app/public/packs/manifest.json. Possible causes:
2021-04-11T16:00:25.310206+00:00 app[web.1]: 1. You want to set webpacker.yml value of compile to true for your environment
2021-04-11T16:00:25.310206+00:00 app[web.1]: unless you are using the `webpack -w` or the webpack-dev-server.
2021-04-11T16:00:25.310207+00:00 app[web.1]: 2. webpack has not yet re-run to reflect updates.
2021-04-11T16:00:25.310207+00:00 app[web.1]: 3. You have misconfigured Webpacker's config/webpacker.yml file.
2021-04-11T16:00:25.310207+00:00 app[web.1]: 4. Your webpack configuration is not creating a manifest.
2021-04-11T16:00:25.310208+00:00 app[web.1]: Your manifest contains:
2021-04-11T16:00:25.310209+00:00 app[web.1]: {
2021-04-11T16:00:25.310209+00:00 app[web.1]: }
2021-04-11T16:00:25.310209+00:00 app[web.1]: ):
2021-04-11T16:00:25.310210+00:00 app[web.1]: [3917b026-8759-4aa2-8d9c-6ceb52082984] 6: <%= csrf_meta_tags %>
2021-04-11T16:00:25.310210+00:00 app[web.1]: [3917b026-8759-4aa2-8d9c-6ceb52082984] 7: <%= csp_meta_tag %>
2021-04-11T16:00:25.310211+00:00 app[web.1]: [3917b026-8759-4aa2-8d9c-6ceb52082984] 8: <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload' %>
2021-04-11T16:00:25.310223+00:00 app[web.1]: [3917b026-8759-4aa2-8d9c-6ceb52082984] 9: <%= javascript_pack_tag 'application', 'data-turbolinks-track': 'reload' %>
2021-04-11T16:00:25.310224+00:00 app[web.1]: [3917b026-8759-4aa2-8d9c-6ceb52082984] 10: <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
2021-04-11T16:00:25.310224+00:00 app[web.1]: [3917b026-8759-4aa2-8d9c-6ceb52082984] 11: <link href="https://unpkg.com/aos@2.3.1/dist/aos.css" rel="stylesheet">
2021-04-11T16:00:25.310224+00:00 app[web.1]: [3917b026-8759-4aa2-8d9c-6ceb52082984] 12: <script src="https://unpkg.com/aos@2.3.1/dist/aos.js"></script>
2021-04-11T16:00:25.310225+00:00 app[web.1]: [3917b026-8759-4aa2-8d9c-6ceb52082984]
2021-04-11T16:00:25.310225+00:00 app[web.1]: [3917b026-8759-4aa2-8d9c-6ceb52082984] app/views/layouts/application.html.erb:9
2021-04-11T16:00:25.313253+00:00 heroku[router]: at=info method=GET path="/" host=chibaportfolio0411.herokuapp.com request_id=3917b026-8759-4aa2-8d9c-6ceb52082984 fwd="220.221.219.111" dyno=web.1 connect=1ms service=2441ms status=500 bytes=1827 protocol=https
2021-04-11T16:00:25.674078+00:00 heroku[router]: at=info method=GET path="/favicon.ico" host=chibaportfolio0411.herokuapp.com request_id=7bd11dd7-902c-4c48-90f5-bbcca8fbfa5a fwd="220.221.219.111" dyno=web.1 connect=1ms service=5ms status=200 bytes=143 protocol=https
Error表示が出ている部分
2021-04-11T15:40:22.270584+00:00 app[web.1]: [151a6ea9-a6ce-48c9-896b-18459fad3115] ActionView::Template::Error (Webpacker can't find application.js in /app/public/packs/manifest.json. Possible causes:
2021-04-11T15:40:22.270585+00:00 app[web.1]: 1. You want to set webpacker.yml value of compile to true for your environment
2021-04-11T15:40:22.270586+00:00 app[web.1]: unless you are using the `webpack -w` or the webpack-dev-server.
2021-04-11T15:40:22.270587+00:00 app[web.1]: 2. webpack has not yet re-run to reflect updates.
2021-04-11T15:40:22.270587+00:00 app[web.1]: 3. You have misconfigured Webpacker's config/webpacker.yml file.
2021-04-11T15:40:22.270588+00:00 app[web.1]: 4. Your webpack configuration is not creating a manifest.
2021-04-11T15:40:22.270589+00:00 app[web.1]: Your manifest contains:
2021-04-11T15:40:22.270590+00:00 app[web.1]: {
自分で試したこと
webpackの再インストールやwebpacker.ymlのいじたりしているのですが、
全然エラーが解決されません。
ぜひ教えていただきたいです。
よろしくお願いしたします!
0