깃허브 블로그 업로드 오류 해결

· #기술 #후기 #오류

Jekyll serve로 돌린 로컬서버에서는 포스팅이 적용되는데

깃허브에 푸시하고 확인하니 포스팅이 블로그에 업로드가 안됐다.

2022-3-18로 두개 만들어서 그런가 싶어서 하나를 3-17로 바꾸니 바꾼 포스트 한개만 업로드 되었다.

이것저것 알아보니 Jekyll에선 기본적으로 timezone이 UTC로 정해져있어서 한국시간보다 9시간 이르다는 것을 알수 있었다.

내가 포스팅할때 2022-3-18일 새벽이고 UTC로는 2022-3-17이어서 발생한 오류같다.

_config.yml 파일에 timezone: Asia/Seoul 을 넣으니 해결되었다.

근데 이젠 또 로컬에서 오류가 떴다.

Dependency Error: Yikes! It looks like you don't have tzinfo or one of its dependencies installed. In order to use Jekyll as currently configured, you'll need to install this gem. If you've run Jekyll with `bundle exec`, ensure that you have included the tzinfo gem in your Gemfile as well. The full error message from Ruby is: 'cannot load such file -- tzinfo' If you run into trouble, you can find helpful resources at https://jekyllrb.com/help/!

구글링해서 tzinfo[timezoneinfo]를 깔고 tzinfo-data를 깔았다.

gem install tzinfo
gem install tzinfo-data

이렇게 jekyll serve하니 로컬서버가 열리긴하는데 오늘 시간 포스팅들이 스킵되었다…. 다시 jekyll serve –future 명령어를 통해 제대로 로컬서버를 열수 있었다…