NOTE: Having an updated ruby system-wide will help quite a bit.
Clone yourself a local copy of the repository:
$ git clone https://[user]@github.com/polarysekt/polarysekt.github.io
where [user] is your GitHub username.
NOTE: For preview-only, repository can be cloned without a username.
todo
To preview the BLOG locally, you will need a few prerequisites:
You will want an updated version of ruby installed system-wide. Older 2.x versions have been known to bork.
# apt install ruby-full
# emerge ruby-gems
# make _get_bundler
NOTE: |
---|
If you are uncomfortable running sudo prior to a make command, you can construct the command yourself: |
# sudo gem install bundler |
``` |
You can update bundler:
$ make _update_bundler
### Install required gems
```sh
$ make install
If you run into difficulties, such as a particular package not being found, try:
$ rm Gemfile.lock
then clean:
$ make clean
and retry:
$ make _get_gems
Now you should be able to run the server.
$ make serve
The .vscode/tasks.json
includes scripts for running the server.
-
serve local livereload
-
serve local livereload drafts
If you get an error such as jekyll not found
when trying to run server:
bundler: command not found: jekyll
Install missing gem executables with `bundle install`
make: *** [Makefile:44: _serve_livereload] Error 127
FIX: force install jekyll
make install _get_jekyll
Older ruby versions may fail to install some gems (i.e. ruby 2.5)
An error occurred while installing http_parser.rb (0.6.0), and Bundler cannot continue.
Make sure that `gem install http_parser.rb -v '0.6.0' --source 'https://rubygems.org/'` succeeds before bundling.
FIX: update ruby system-wide