DjangoとPythonで作ったwebアプリケーションHeroku にアップしましたが、うまく動かないです。アプリケーションエラーでグレーアウトします。
Procfile の設定がうまくいってないのかもしれません。
web: gunicorn app.asgi:application -k uvicorn.workers.UvicornWorker
エラー
2021-02-25T00:31:18.489925+00:00 app[web.1]: time.sleep(0.1) 2021-02-25T00:31:18.489970+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/arbiter.py", line 242, in handle_chld 2021-02-25T00:31:18.490263+00:00 app[web.1]: self.reap_workers() 2021-02-25T00:31:18.490299+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/arbiter.py", line 525, in reap_workers 2021-02-25T00:31:18.490752+00:00 app[web.1]: raise HaltServer(reason, self.WORKER_BOOT_ERROR) 2021-02-25T00:31:18.490810+00:00 app[web.1]: gunicorn.errors.HaltServer: <HaltServer 'Worker failed to boot.' 3> 2021-02-25T00:31:18.564477+00:00 heroku[web.1]: Process exited with status 1 2021-02-25T00:31:18.647378+00:00 heroku[web.1]: State changed from starting to crashed 2021-02-25T00:31:19.874774+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=memotter.herokuapp.com request_id=9dbf8cc2-5172-4080-99bf-b5910b60ca33 fwd="126.199.213.245" dyno= connect= service= status=503 bytes= protocol=https 2021-02-25T00:31:21.148477+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=memotter.herokuapp.com request_id=51e4ad41-0fe8-41d8-9a6f-9f0374b38574 fwd="126.199.213.245" dyno= connect= service= status=503 bytes= protocol=https Disconnected from log stream. There may be events happening that you do not see here! Attempting to reconnect... 2021-02-25T00:31:18.489925+00:00 app[web.1]: time.sleep(0.1) 2021-02-25T00:31:18.489970+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/arbiter.py", line 242, in handle_chld 2021-02-25T00:31:18.490263+00:00 app[web.1]: self.reap_workers() 2021-02-25T00:31:18.490299+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/arbiter.py", line 525, in reap_workers 2021-02-25T00:31:18.490752+00:00 app[web.1]: raise HaltServer(reason, self.WORKER_BOOT_ERROR) 2021-02-25T00:31:18.490810+00:00 app[web.1]: gunicorn.errors.HaltServer: <HaltServer 'Worker failed to boot.' 3> 2021-02-25T00:31:18.564477+00:00 heroku[web.1]: Process exited with status 1 2021-02-25T00:31:18.647378+00:00 heroku[web.1]: State changed from starting to crashed 2021-02-25T00:31:19.874774+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=memotter.herokuapp.com request_id=9dbf8cc2-5172-4080-99bf-b5910b60ca33 fwd="126.199.213.245" dyno= connect= service= status=503 bytes= protocol=https 2021-02-25T00:31:21.148477+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=memotter.herokuapp.com request_id=51e4ad41-0fe8-41d8-9a6f-9f0374b38574 fwd="126.199.213.245" dyno= connect= service= status=503 bytes= protocol=https Disconnected from log stream. There may be events happening that you do not see here! Attempting to reconnect... 2021-02-25T00:31:18.489925+00:00 app[web.1]: time.sleep(0.1) 2021-02-25T00:31:18.489970+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/arbiter.py", line 242, in handle_chld 2021-02-25T00:31:18.490263+00:00 app[web.1]: self.reap_workers() 2021-02-25T00:31:18.490299+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/arbiter.py", line 525, in reap_workers 2021-02-25T00:31:18.490752+00:00 app[web.1]: raise HaltServer(reason, self.WORKER_BOOT_ERROR) 2021-02-25T00:31:18.490810+00:00 app[web.1]: gunicorn.errors.HaltServer: <HaltServer 'Worker failed to boot.' 3> 2021-02-25T00:31:18.564477+00:00 heroku[web.1]: Process exited with status 1 2021-02-25T00:31:18.647378+00:00 heroku[web.1]: State changed from starting to crashed 2021-02-25T00:31:19.874774+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=memotter.herokuapp.com request_id=9dbf8cc2-5172-4080-99bf-b5910b60ca33 fwd="126.199.213.245" dyno= connect= service= status=503 bytes= protocol=https 2021-02-25T00:31:21.148477+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=memotter.herokuapp.com request_id=51e4ad41-0fe8-41d8-9a6f-9f0374b38574 fwd="126.199.213.245" dyno= connect= service= status=503 bytes= protocol=https
base.py
python
1 2 3dev.py 4```python
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。