Do Note

儒道佛魔修心地

部署jekyll在树莓派3B上


1.部署Jekyll

sudo apt-get update
sudo apt-get install ruby
sudo apt-get install ruby-dev
sudo gem install jekyll bundler #等待略久
[sudo] jekyll new my-awesome-site #新建一个站点 或mv导入站点源文件
cd my-awesome-site
bundle install
sudo bundle exec jekyll serve # 在本地预览服务中编译站点
=> Now browse to http://localhost:4000

2.若需要在局域网访问

sudo bundle exec jekyll serve --watch --host=0.0.0.0 & #--detach表示后台静默 --incremental增量构建
=> Now browse to 局域网IP:4000

3.如果没有Gemfile

vi Gemfile
source 'https://rubygems.org'
gem 'github-pages', group: :jekyll_plugins

4.如果没有git,Not Installed: No such file or directory

sudo apt-get install git

 


Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.