강의

멘토링

커뮤니티

인프런 커뮤니티 질문&답변

박재현님의 프로필 이미지
박재현

작성한 질문수

MERN STACK 커뮤니티 : 시작부터 배포까지 알려주는 React

Heroku : 배포하기

배포 오류입니다. ㅠㅠ

작성

·

668

1

2022-02-04T00:42:30.000000+00:00 app[api]: Build failed -- check your build output: https://dashboard.heroku.com/apps/06ead801-976c-4dbe-83e9-7f1958c8411d/activity/builds/6faf4b75-0168-443d-85b9-4ff4912c6021

2022-02-04T00:55:07.484329+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=bong9-commu.herokuapp.com request_id=52fee8bb-8940-477d-9678-49589a052c0c fwd="112.148.180.249" dyno= connect= service= status=503 bytes= protocol=https

2022-02-04T00:55:08.224867+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=bong9-commu.herokuapp.com request_id=a8bac21c-590f-4fec-89d9-2b0d7a2d0c24 fwd="112.148.180.249" dyno= connect= service= status=503 bytes= protocol=https        

2022-02-04T00:55:08.743629+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=bong9-commu.herokuapp.com request_id=2e254454-df6c-4f83-89b7-f9aedfd45996 fwd="112.148.180.249" dyno= connect= service= status=503 bytes= protocol=http

2022-02-04T00:55:16.461850+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=bong9-commu.herokuapp.com request_id=e407879d-f4a1-4cbb-b11d-c4970b8b8141 fwd="112.148.180.249" dyno= connect= service= status=503 bytes= protocol=http

2022-02-04T00:57:56.593514+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=bong9-commu.herokuapp.com request_id=193a4ff2-6464-4785-8f4b-79a19ab60218 fwd="112.148.180.249" dyno= connect= service= status=503 bytes= protocol=https

2022-02-04T00:57:57.272888+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=bong9-commu.herokuapp.com request_id=ae0fc620-aecb-414e-a285-bdf927bbe62b fwd="112.148.180.249" dyno= connect= service= status=503 bytes= protocol=https  

 

빌드, 라우터 , 앱 충돌 뭐 이런 내용들 같은데 도움 부탁드리겠습니다.

답변 2

1

박재현님의 프로필 이미지
박재현
질문자

해결했습니다. procfile 띄어쓰기 문제였던것 같습니다.

0

판다코딩님의 프로필 이미지
판다코딩
지식공유자

헤로쿠에서 H10 에러코드는 앱이 다운되거나, 부팅 시간이 과도하게 길어질 때 발생합니다.

프로젝트를 빌드하거나 실행할 때, 에러가 없다면

아래의 사항들을 하나씩 확인해주시길 바랍니다.

  1. package.json 파일의 engines의 node와 npm 버전
  2. package.json 파일의 start와 build 명령어
    (혹시 start 명령어에 nodemon을 사용하셨다면, node로 바꿔주시길 바랍니다.)
  3. Procfile, root dir에 있어야 합니다.
  4. 환경변수 (port, mongoURL 등) 세팅
    API 키들은 헤로쿠 앱에도 정상적으로 등록되어 있는지 확인하시길 바랍니다.
  5. heroku에 push할 때 서버폴더를 루트디렉토리로 푸쉬하였는지

위 다섯개의 항목을 확인해보시고 다시 한번 push 해보세요 :)

박재현님의 프로필 이미지
박재현

작성한 질문수

질문하기