갑자기 잘 되던 Heroku Automatic deployment 가 안된다.

katanazero·2022년 4월 18일
2

etc

목록 보기
10/12

개인 프로젝트 내용을 수정해서, master 에 push 를 하였는데 나중에 살펴보니 fail 이라는 이메일이 와있었다.

An automatic deployment for react-toy failed. The build failed with the message Unauthorized.
Token from user katanazero86@gmail.com was used to interact with GitHub. This account was matched as the GitHub committer.
You can also check that the user who connected the app or pipeline to GitHub still has access to the app and to the Github repository.
In this case, reconnecting to GitHub will often fix the issue.
If you believe that this build failure was not due to an issue in your app, please open a support ticket.

heroku 에 로그인해서 해당알림을 확인해보았다.
gitHub 와 다시 재연결을 하면 해결이 된다고 안내가 되어있어서..시도를 하는데..

해당 이슈에 대해서 검색을 해보았다.
스택오버플로우에 나와같은 문제를 겪는 사람이 있었나보다.
https://stackoverflow.com/questions/71892543/heroku-and-github-items-could-not-be-retrieved-internal-server-error

Update
Subject: Heroku Security Update: OAuth token revoked
At 5:00 p.m. PT on April 16, 2022, Salesforce completed the revocation of all OAuth tokens from the Heroku Dashboard GitHub integration. As mentioned previously, this will prevent you from deploying your apps from GitHub through the Heroku dashboard or via Heroku automation, and some other actions in the dashboard will no longer work. While you will be unable to reconnect to GitHub via the Heroku dashboard, you may continue to use other code deployment methods available in the following documentation:

보안 업데이트로 인한 정책변경으로 gitHub 와 연동이 안되는거같다.
그래서 heroku CLI 를 설치하여 배포를 진행하였다.


문서에도 잘 설명이 되어있지만 혹시나 몰라서 정리를 해둔다.

heroku login
// 기존 프로젝트이기에..
heroku git:remote -a <heroku-app-name>

위 명령어가 git remote add <단축이름> <remote-url> 와 동일한거다.
heroku cli 로 생성하면 heroku 라는 단축이름으로 생성이 된다.

 git push heroku master 
 // 또는
 git push heroku main

profile
developer life started : 2016.06.07 ~ 흔한 Front-end 개발자

0개의 댓글