Jekyll 설치 및 테스트

Posted by Eun JongHyeok on June 13, 2021
  1. Reference

jekyll, bundler gems 설치

1
gem install jekyll bundler

jekyll site 생성

1
2
3
4
# 폴더로 생성
jekyll new my_blog.github.io
# 혹은 본인의 git repository에서 실행할 경우
jekyll new ./

테마는 자동으로 기본 테마 minima

bundle 설치 및 테스트

1
2
bundle install
bundle exec jekyll serve

http://localhost:4000에서 결과를 확인 가능

오류 상황일 경우

  • `require’: cannot load such file – webrick
1
bundle add webrick
  • `bind’: address already in use - bind(2) for 127.0.0.1:4000 (errno::eaddrinuse)
1
lsof -wni tcp:4000

PID 체크 후 해당 프로세스 킬

1
kill -9 해당 PID

Reference

jekyll tutorial

webrick 오류

로컬 호스트를 이미 사용하고 있는 경우


jekyll
bundler
github_pages

← Previous Post Next Post