Skip to content

Latest commit

 

History

History
executable file
·
65 lines (47 loc) · 1.01 KB

README.md

File metadata and controls

executable file
·
65 lines (47 loc) · 1.01 KB

VagrantPi's Blog

紀錄一些生活札記

Blog 使用 hyde 建置

Website: https://vagrantpi.github.io/

install dependency

gem install bundler
bundle install

build

$ sh build.sh

serve in local

$ jekyll serve -H 0.0.0.0
Auto-regeneration: enabled for '/VagrantPi.github.io'
   Server address: http://0.0.0.0:4000/
 Server running... press ctrl-c to stop.

build 時可能遇到的問題

You have already activated public_suffix 5.0.1, but your Gemfile requires public_suffix 5.0.0. Prepending `bundle exec` to your command may solve this.

可以使用
bundle clean --force

使用 docker 環境

開發

docker run --rm \
  -v "$PWD:/srv/jekyll:Z" \
  -p 4000:4000 \
  jekyll/jekyll \
  jekyll serve

編譯

docker run --rm \
  -v "$PWD:/srv/jekyll:Z" \
  jekyll/jekyll \
  jekyll build