Hexo deploy 에러
😡 이슈
Github블로그를 hexo로 관리하고 있었는데 Error: Spawn failed라며 deploy가 안되는 것이다.
🤪 원인
에러가 뜨자마자 원인은 대충 예상되었는데 github에서 2021년 8월 13일부터 비밀번호를 통한 인증을 지원하지 않는다고 했던 사실이 떠올랐기 때문이다. 진즉에 토큰이나 ssh인증을 사용했으면 발생하지 않았을 에러였다.
😇 해결
1 | deploy: |
토큰을 발급받고 _config.yml
파일을 수정하여 해결하였다.
참고 :
- GitHub 기본 인증 지원 중단 예정 알림 (https://github.blog/2020-12-15-token-authentication-requirements-for-git-operations)
- GitHub token 발급 방법 (https://docs.github.com/en/github/authenticating-to-github/keeping-your-account-and-data-secure/creating-a-personal-access-token)
- Hexo deploy Issue (https://github.com/hexojs/hexo-deployer-git/issues/159)