質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.48%
Flask

FlaskはPython用のマイクロフレームワークであり、Werkzeug・Jinja 2・good intentionsをベースにしています。

Git

Gitはオープンソースの分散バージョン管理システム(DVCS)です。

Heroku

HerokuはHeroku社が開発と運営を行っているPaaSの名称です。RubyやNode.js、Python、そしてJVMベース(Java、Scala、Clojureなど)の複数のプログラミング言語をサポートしている。

Python

Pythonは、コードの読みやすさが特徴的なプログラミング言語の1つです。 強い型付け、動的型付けに対応しており、後方互換性がないバージョン2系とバージョン3系が使用されています。 商用製品の開発にも無料で使用でき、OSだけでなく仮想環境にも対応。Unicodeによる文字列操作をサポートしているため、日本語処理も標準で可能です。

Q&A

解決済

1回答

1744閲覧

Heroku上でのApplication Errorについて

gzhh

総合スコア16

Flask

FlaskはPython用のマイクロフレームワークであり、Werkzeug・Jinja 2・good intentionsをベースにしています。

Git

Gitはオープンソースの分散バージョン管理システム(DVCS)です。

Heroku

HerokuはHeroku社が開発と運営を行っているPaaSの名称です。RubyやNode.js、Python、そしてJVMベース(Java、Scala、Clojureなど)の複数のプログラミング言語をサポートしている。

Python

Pythonは、コードの読みやすさが特徴的なプログラミング言語の1つです。 強い型付け、動的型付けに対応しており、後方互換性がないバージョン2系とバージョン3系が使用されています。 商用製品の開発にも無料で使用でき、OSだけでなく仮想環境にも対応。Unicodeによる文字列操作をサポートしているため、日本語処理も標準で可能です。

0グッド

0クリップ

投稿2022/02/07 04:23

herokuにgitからpushしデプロイしました。
しかし、herokuでアプリを起動するとApplication Errorという表示がでてきます。
イメージ説明
python,flask等で作成してローカル環境では正常に動作します。
heroku log コマンドでエラーを確認したところ下記の内容が原因かと思われます。
OS はwindowsです。

2022-02-06T15:36:36.271726+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=face-cover.herokuapp.com request_id=bafd72cf-6e59-4cab-b87c-ff3936bee141 fwd="60.238.134.248" dyno= connect= service= status=503 bytes= protocol=https 2022-02-06T15:36:36.521685+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=face-cover.herokuapp.com request_id=0a790932-fe4f-4bdb-93d7-f50c24062f7a fwd="60.238.134.248" dyno= connect= service= status=503 bytes= protocol=https 2022-02-06T15:38:16.715185+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=face-cover.herokuapp.com request_id=b6c2f65a-0f8d-4663-b8b2-15f1bab25789 fwd="60.238.134.248" dyno= connect= service= status=503 bytes= protocol=https 2022-02-06T15:38:16.970619+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=face-cover.herokuapp.com request_id=526c15ab-48ce-4d6b-872b-2c3fe35050db fwd="60.238.134.248" dyno= connect= service= status=503 bytes= protocol=https

上記の内容が原因だと思うのですが、調べても対処方がわかりません。。。
エラーログを一部記載いたします。
アドバイスいただければ幸いです。

2022-02-06T15:38:16.970619+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=face-cover.herokuapp.com request_id=526c15ab-48ce-4d6b-872b-2c3fe35050db fwd="60.238.134.248" dyno= connect= service= status=503 bytes= protocol=https 2022-02-06T15:45:41.870368+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=face-cover.herokuapp.com request_id=2c277d1e-575f-4895-8473-6ea934e31865 fwd="60.238.134.248" dyno= connect= service= status=503 bytes= protocol=https 2022-02-06T15:45:42.106850+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=face-cover.herokuapp.com request_id=b7c481d7-86ab-4d39-9826-a65c9b3eb444 fwd="60.238.134.248" dyno= connect= service= status=503 bytes= protocol=https 2022-02-06T15:57:58.331459+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/%20deployed%20to%20Heroku" host=face-cover.herokuapp.com request_id=04dab9fb-0619-4686-a07a-b24920fff95f fwd="60.238.134.248" dyno= connect= service= status=503 bytes= protocol=https 2022-02-06T15:57:58.593677+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=face-cover.herokuapp.com request_id=fa527870-8c77-4ede-9af5-4c130ada4fcd fwd="60.238.134.248" dyno= connect= service= status=503 bytes= protocol=https 2022-02-07T02:56:37.982384+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=face-cover.herokuapp.com request_id=7fe779c4-6fbe-4976-961e-3a2a0745c40d fwd="122.133.65.25" dyno= connect= service= status=503 bytes= protocol=https 2022-02-07T02:56:38.284563+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=face-cover.herokuapp.com request_id=27c725fb-c0c3-4c5b-91f1-f3030f81572a fwd="122.133.65.25" dyno= connect= service= status=503 bytes= protocol=https 2022-02-07T03:25:12.294806+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=face-cover.herokuapp.com request_id=b83cbafd-aa82-4a14-9fb1-f97490965cd3 fwd="122.133.65.25" dyno= connect= service= status=503 bytes= protocol=https 2022-02-07T03:25:12.570795+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=face-cover.herokuapp.com request_id=002753a3-ce34-4750-a71a-7cd43f598a21 fwd="122.133.65.25" dyno= connect= service= status=503 bytes= protocol=https

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

guest

回答1

0

自己解決

pip install gunicorn で解決しました。
エラーログの最初のnot found gunicornと書いてあるのを見落としていました。

投稿2022/02/09 08:37

gzhh

総合スコア16

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.48%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問