前提・実現したいこと
Flaskのチュートリアル(http://flask.pocoo.org/docs/1.0/tutorial/)の
ブログアプリをHerokuで動作させたい。
プロジェクトフォルダは下記のようになっています。
/home/user/Projects/flask-tutorial
├── flaskr/
│ ├── init.py
│ ├── db.py
│ ├── schema.sql
│ ├── auth.py
│ ├── blog.py
│ ├── templates/
│ │ ├── base.html
│ │ ├── auth/
│ │ │ ├── login.html
│ │ │ └── register.html
│ │ └── blog/
│ │ ├── create.html
│ │ ├── index.html
│ │ └── update.html
│ └── static/
│ └── style.css
├── tests/
│ ├── conftest.py
│ ├── data.sql
│ ├── test_factory.py
│ ├── test_db.py
│ ├── test_auth.py
│ └── test_blog.py
├── venv/
├── setup.py
└── MANIFEST.in
発生している問題・エラーメッセージ
Flaskのチュートリアル(http://flask.pocoo.org/docs/1.0/tutorial/)を行い、
ローカル環境では正常に動作したので、Herokuでデプロイしたところ、
以下のエラーメッセージが発生しました。
2019-04-21T14:33:43.000000+00:00 app[api]: Build succeeded 2019-04-21T14:33:46.161430+00:00 heroku[web.1]: Starting process with command `export FLASK_ENV=development` 2019-04-21T14:33:47.937502+00:00 heroku[web.1]: State changed from starting to crashed 2019-04-21T14:33:47.915486+00:00 heroku[web.1]: Process exited with status 0 2019-04-21T14:33:48.753678+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=●●●.herokuapp.com request_id=bb45ac89-9e8c-444e-b68b-c01a4b792be0 fwd="14.13.212.1" dyno= connect= service= status=503 bytes= protocol=https 2019-04-21T14:33:48.853244+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=●●●.herokuapp.com request_id=49321585-5507-4107-ab35-adae9ef82ba6 fwd="14.13.212.1" dyno= connect= service= status=503 bytes= protocol=https 2019-04-21T14:33:49.100168+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=●●●.herokuapp.com request_id=3e025e1a-39d8-4000-9aab-264866794201 fwd="14.13.212.1" dyno= connect= service= status=503 bytes= protocol=https ▸ Log stream timed out. Please try again.
試したこと
https://qiita.com/Oakbow/items/1565922ddcdea0ce9ab5
https://teratail.com/questions/68550
上の2つも参考にしてみたのですが、うまくいきません。
どなたか解決方法をご教示くださいますと幸いです。
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2019/04/24 12:01