Skip to content

Latest commit

 

History

History
21 lines (20 loc) · 664 Bytes

README.md

File metadata and controls

21 lines (20 loc) · 664 Bytes

Ji-An's Blog

# install ruby in Ubuntu https://jekyllrb.com/docs/installation/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
# 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/ajlahwh/OneDrive/ajlahwh.github.io
# install dependencies in Gemfile
bundle install
# run jekyll
bundle exec jekyll serve