# install ruby in Ubuntu https://jekyllrb.com/docs/installation/ubuntu/
# ubuntu mirror: https://mirrors.tuna.tsinghua.edu.cn/help/ubuntu/
sudo apt-get update
sudo apt-get install ruby-full build-essential zlib1g-dev
echo '# Install Ruby Gems to ~/gems' >> ~/.bashrc
echo 'export GEM_HOME="$HOME/gems"' >> ~/.bashrc
echo 'export PATH="$HOME/gems/bin:$PATH"' >> ~/.bashrc
source ~/.bashrc
# add gem mirror in China
gem sources --add https://gems.ruby-china.com/ --remove https://rubygems.org/
# install jekyll and bundler with gem
gem install jekyll bundler
# set mirror in China
bundle config mirror.https://rubygems.org https://gems.ruby-china.com
# cd to blog directory
cd /mnt/c/Users/snowkylin/OneDrive/github/snowkylin.github.io
# install dependencies in Gemfile
bundle install
# run jekyll
bundle exec jekyll serve
# for auto-regeneration, https://github.com/microsoft/WSL/issues/216#issuecomment-756424551
bundle exec jekyll serve --force_polling
# for error regarding webrick
bundle add webrick
-
Notifications
You must be signed in to change notification settings - Fork 8
Snowkylin's Blog - 雪麒的百草园
snowkylin/snowkylin.github.io
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Snowkylin's Blog - 雪麒的百草园
Topics
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published