Last active
October 2, 2018 14:26
-
-
Save thinkycx/0b65ea9a0b7a3e76051e77824702d2c8 to your computer and use it in GitHub Desktop.
install jekyll on ubuntu
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ref: https://jekyllrb.com/docs/installation/ubuntu/ | |
# requirements | |
sudo apt-get install ruby ruby-dev build-essential | |
# env for bash | |
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 | |
gem install jekyll bundler | |
# plugins | |
gem install jekyll-paginate | |
gem install jekyll-gist | |
# https://github.com/sparklemotion/nokogiri/issues/1667 | |
sudo apt-get install libpng-dev | |
gem install jemoji | |
# run | |
cd ~/blog | |
jekyll serve -H 0.0.0.0 | |
# use this gist | |
# <script src="https://gist.github.com/thinkycx/0b65ea9a0b7a3e76051e77824702d2c8.js"></script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment