HEROKU | at=error code=H10 desc="App crashed" method=GET path="/" host

Heroku 빌드팩 에러 대응


환경 : React TypeScript


1. 헤로쿠 빌드팩 추가

 -heroku buildpacks:set mars/create-react-app
명령어를 통해 heroku 빌드팩 변경 하면 아래와 같이 변경된다.

 

Before

After

이후 git push heroku master 를 이용하여 배포하면


    
git push heroku master

 

Stack heroku-22 is not supported!

아 ㅋㅋ.. 빌드팩이 헤로쿠22를 지원안한다네요

2. 빌드팩 22 버전 에러 해소

22를 지원하는 빌드팩으로 변경을 하려다

헤로쿠를 우선 20으로 변경하고 사용해보려합니다.


    
heroku stack:set heroku-20

이후 다시 배포 하면

 

728x90
728x90
김 탱