Development
Development
Setting up the repository
Install, on Ubuntu:
sudo apt install ruby-full
Add to ~/.bashrc
export GEM_HOME=$HOME/.gem
export GEM_PATH=$HOME/.gem
For working with ruby it is encouraged to use rbenv and Bundler for painless Ruby upgrades and environment.
# install with curl
curl -fsSL https://github.com/rbenv/rbenv-installer/raw/master/bin/rbenv-installer | bash
# Install rbenv for managing enabling of multiple rubies.
git clone git://github.com/sstephenson/rbenv.git ~/.rbenv
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.zshrc
echo 'eval "$(rbenv init -)"' >> ~/.zshrc
exec $SHELL
rbenv install 2.7.1
rbenv local 2.7.1
More details at: https://www.ruby-lang.org/en/downloads/ https://github.com/rbenv/rbenv
Executing the blog locally
Not necessary anymore
bundle exec jekyll new --force --skip-bundle .
bundle install