前提
Windowのローカルで作成したアプリケーションをHerokuを使用してWeb上に公開しようとしています。Herokuでデプロイをすることはできたのですが、作成したアプリケーションが動作せず、画像のようにエラーが発生してしまいました。エラーログ H10 からアプリがクラッシュしたということは分かったのですが、改善方法が分かりません。
ご教授いただけますと幸いです。よろしくお願いいたします。
実現したいこと
Web上でアプリケーションを動作させたい。
発生している問題・エラーメッセージ
2022-07-15T12:37:37.932690+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=app.herokuapp.com request_id=e5a61d73-6b36-46ab-aff4-430fae1cf724 fwd="126.251.50.72" dyno= connect= service= status=503 bytes= protocol=https 2022-07-15T12:37:38.360502+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=app.herokuapp.com request_id=dbecf5f4-a84b-4aec-ae61-db4511c16c7e fwd="126.251.50.72" dyno= connect= service= status=503 bytes= protocol=https
試したこと
こちらの2つのサイト(https://qiita.com/koao123/items/fd7abb39a3710b0a3577) (https://qiita.com/hmmrjn/items/e2dff8036fbbd74f049a) を参考に、/Gemfile とconfig/database.yml を書き換え、デプロイし直した。
debug/Gemfile
gem 'sqlite3', group: :development gem 'pg', group: :production
subject-app/config/database.yml
production: <<: *default adapter: postgresql encoding: unicode pool: 5
Heroku でアプリケーションを動作させ、その後エラーログを見てみると変わらず2つのエラーが返された。
2022-07-16T13:32:31.233575+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=app.herokuapp.com request_id=0746a230-fb72-4b96-ab25-bc585d2d8c18 fwd="126.251.50.72" dyno= connect= service= status=503 bytes= protocol=https 2022-07-16T13:32:31.467270+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=app.herokuapp.com request_id=7c7b4075-3e37-4feb-aea5-97679284adb9 fwd="126.251.50.72" dyno= connect= service= status=503 bytes= protocol=https
追記
debug/Gemfileに以下を追加してデプロイ
gem 'net-imap' gem 'net-pop' gem 'net-smtp'
変わらずエラーを返された。
補足情報(FW/ツールのバージョンなど)
Python3.8.13
Heroku7.60.2
Windows home10
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。