##環境
Rails
MySQL
MacBook
前提・実現したいこと
Railsの簡単なSNSアプリをHEROKUでデプロイしたい
エラーメッセージ
デプロイしてブラウザでみにいくと
We're sorry, but something went wrong. If you are the application owner check the logs for more information.
](4a4a83c9308a73d08b44780ee9fc01d4.png)
ログをみにいく
ターミナルでheroku logs -tを入力
ログの一部
2020-07-24T14:00:26.825690+00:00 heroku[router]: at=info method=GET path="/" host=bicycle2.herokuapp.com request_id=771ad48c-a660-4003-9d31-d0f92e38e54f fwd="118.106.23.161" dyno=web.1 connect=1ms service=11ms status=500 bytes=1891 protocol=https 2020-07-24T14:01:54.734651+00:00 app[web.1]: I, [2020-07-24T14:01:54.734537 #4] INFO -- : [d417bbc8-6463-49d6-b832-31a8b9a382de] Started GET "/" for 118.106.23.161 at 2020-07-24 14:01:54 +0000 2020-07-24T14:01:54.735290+00:00 app[web.1]: I, [2020-07-24T14:01:54.735214 #4] INFO -- : [d417bbc8-6463-49d6-b832-31a8b9a382de] Processing by TweetsController#index as HTML 2020-07-24T14:01:54.736321+00:00 app[web.1]: I, [2020-07-24T14:01:54.736245 #4] INFO -- : [d417bbc8-6463-49d6-b832-31a8b9a382de] Rendering tweets/index.html.erb within layouts/application 2020-07-24T14:01:54.745748+00:00 app[web.1]: I, [2020-07-24T14:01:54.745649 #4] INFO -- : [d417bbc8-6463-49d6-b832-31a8b9a382de] Rendered tweets/index.html.erb within layouts/application (9.3ms) 2020-07-24T14:01:54.745878+00:00 app[web.1]: I, [2020-07-24T14:01:54.745820 #4] INFO -- : [d417bbc8-6463-49d6-b832-31a8b9a382de] Completed 500 Internal Server Error in 10ms 2020-07-24T14:01:54.746627+00:00 app[web.1]: F, [2020-07-24T14:01:54.746564 #4] FATAL -- : [d417bbc8-6463-49d6-b832-31a8b9a382de] 2020-07-24T14:01:54.746678+00:00 app[web.1]: F, [2020-07-24T14:01:54.746627 #4] FATAL -- : [d417bbc8-6463-49d6-b832-31a8b9a382de] ActionView::Template::Error (Unsupported charset: '"unicode"'): 2020-07-24T14:01:54.746811+00:00 app[web.1]: F, [2020-07-24T14:01:54.746760 #4] FATAL -- : [d417bbc8-6463-49d6-b832-31a8b9a382de] 3: <%= form.submit "検索", class: "search-btn" %> 2020-07-24T14:01:54.746812+00:00 app[web.1]: [d417bbc8-6463-49d6-b832-31a8b9a382de] 4: <% end %> 2020-07-24T14:01:54.746812+00:00 app[web.1]: [d417bbc8-6463-49d6-b832-31a8b9a382de] 5: <div class="contents row"> 2020-07-24T14:01:54.746813+00:00 app[web.1]: [d417bbc8-6463-49d6-b832-31a8b9a382de] 6: <% @tweets.each do |tweet| %> 2020-07-24T14:01:54.746813+00:00 app[web.1]: [d417bbc8-6463-49d6-b832-31a8b9a382de] 7: <%= render partial: "tweet", locals: { tweet: tweet } %> 2020-07-24T14:01:54.746814+00:00 app[web.1]: [d417bbc8-6463-49d6-b832-31a8b9a382de] 8: <% end %> 2020-07-24T14:01:54.746814+00:00 app[web.1]: [d417bbc8-6463-49d6-b832-31a8b9a382de] 9: <%= paginate(@tweets) %> 2020-07-24T14:01:54.746883+00:00 app[web.1]: F, [2020-07-24T14:01:54.746811 #4] FATAL -- : [d417bbc8-6463-49d6-b832-31a8b9a382de] 2020-07-24T14:01:54.746943+00:00 app[web.1]: F, [2020-07-24T14:01:54.746873 #4] FATAL -- : [d417bbc8-6463-49d6-b832-31a8b9a382de] app/views/tweets/index.html.erb:6:in `_app_views_tweets_index_html_erb__1419858311305503014_47084920' 2020-07-24T14:01:54.747418+00:00 heroku[router]: at=info method=GET path="/" host=bicycle2.herokuapp.com request_id=d417bbc8-6463-49d6-b832-31a8b9a382de fwd="118.106.23.161" dyno=web.1 connect=0ms service=16ms status=500 bytes=1891 protocol=https 2020-07-24T14:01:55.150242+00:00 heroku[router]: at=info method=GET path="/favicon.ico" host=bicycle2.herokuapp.com request_id=0ce5a5a3-4663-42a9-9fe8-870ac88d97fe fwd="118.106.23.161" dyno=web.1 connect=0ms service=1ms status=304 bytes=112 protocol=https
試したこと
heroku run rails db:migrateをしたりしました。
原因がわからず解決してない状態です。
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。