Jekyll on Ubuntu - rharmonson/richtech GitHub Wiki
Jekyll On Ubuntu
.bashrc
Update ~/.bashrc
export GEM_HOME=$HOME/gems
export PATH=$HOME/gems/bin:$PATH
Open a new session or update current session
source ~/.bashrc
ruby & bundler
$ sudo apt install ruby bundler
jekyll
$ gem install jekyll
$ mkdir ~/gitcode
$ cd ~/gitcode
$ jekyll new test
$ cd test
$ bundle exec jekyll serve --verbose
The verbose flag is optional but very useful for troubleshooting
Browse to http://localhost:4000. Use ctrl-c to close.
Theme
Clone a Jekyll theme for use locally.
$ cd ~/gitcode
$ git clone [email protected]:mmistakes/minimal-mistakes.git
$ cd minimal-mistake
$ bundle install
$ bundle exec jekyll server
Remove all gems
Remove all gems, their dependencies, and without user interaction.
gem uninstall -Iax