I use jekyll to build my static site (this site).
sudo apt install ruby-bundler ruby-dev
I set up bundle to install to a local folder so it doesn’t need sudo:
bundle config path vendor/bundle --local
This config tracked in .bundle/config
.
Then I can install dependencies:
bundle install
This in my Makefile as make setup
.
I run the server as follows:
bundle exec jekyll serve
This is in my Makefile as make serve
.
https://github.com/jekyll/jekyll