프로그래밍/FastAPI
Heroku 배포 중 H10(App crashed) 에러
김함수
2022. 2. 6. 17:38
파이썬 서버에 Heroku Postgres를 연결하는 코드를 추가하여 헤로쿠에 배포하던 중
아래와 같은 H10 에러를 만났습니다.
heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=high-order-official-wealth.herokuapp.com request_id=3f4cf04d-0961-4b86-a1e1-1356669c0d2d fwd="110.35.39.190" dyno= connect= service= status=503 bytes= protocol=https
검색해보니 범용 에러인 것 같아서 해결 방법이 오리무중이었습니다..
postgresql 관련 코드를 추가하면서 'psycopg2' 드라이버를 새로 설치했는데
이것과 관련이 있는 것 같아서 requirements.txt 파일을 새로 만들어보았습니다.
pip freeze > requirements.txt
requirements.txt 파일을 새로 만들고 배포하니, 잘 실행되었습니다.