jekyll_minimal mistakes 로컬 구동
Updated:
[Github Blog] jekyll - minimal mistakes 로컬 구동
1) Ruby 설치
설치 가이드 확인
https://mmistakes.github.io/minimal-mistakes/docs/installation/
-
Install dependencies 내 [official documentation] 링크로 이동 https://jekyllrb.com/docs/
-
Ruby 다운로드 페이지 이동 https://rubyinstaller.org/downloads/
Ruby 설치파일 다운로드
- WITH DEVKIT에서 추천하는 버전을 다운받는다.
- 이떄, jekyll은 32bit이므로 x86을 설치하여야 한다.
2) jekyll 설치 및 세팅
bundler와 jekyll을 설치한다.
-
cmd창 열고, 아래 명령어를 입력한다.
gem install jekyll gem install bundler
-
ruby와 jekyll 정상 설치를 확인한다.
ruby -v
jekyll -v
jekyll 추가
-
clone 받은 git repository 폴더로 이동 후, shift + 오른쪽 마우스 클릭하여 powershell을 연다.
-
Bundler 를 사용해서 새 프로젝트에 Jekyll 을 의존요소로서 추가한다. 이 명령은 Jekyll 젬을 Gemfile 에 추가한다.
bundle add jekyll
서버 작동
-
아래 명령으로 웹사이트를 서버에 올린다.
bundle exec jekyll serve
-
plugins 추가 설치를 요청하는 메시지가 뜰 경우, 아래 명령어로 bundle을 추가한다.
bundle add [추가 설치가 필요한 plugins 이름]
-
서버가 정상 작동되면 아래와 같은 메시지가 뜬다. Server address로 웹사이트를 확인한다.
Configuration file: C:/Work/Githubblog/bokyoung89.github.io/_config.yml Source: C:/Work/Githubblog/bokyoung89.github.io Destination: C:/Work/Githubblog/bokyoung89.github.io/_site Incremental build: disabled. Enable with --incremental Generating... Jekyll Feed: Generating feed for posts Auto-regeneration: enabled for 'C:/Work/Githubblog/bokyoung89.github.io' Server address: http://127.0.0.1:4000/ Server running... press ctrl-c to stop.