Code for Bernat Frangi's personal site 🙌.
As per the instructions on the official Jekyll Docs [1], the setup for local development in Ubuntu is as follows:
-
Install Ruby and other requirements:
sudo apt-get install ruby-full build-essential zlib1g-dev
-
Set up a gem installation directory for your user account to avoid installing gems as the root user (note that if you are using
zsh
, you should add these lines to~/.zshrc
instead of~/.bashrc
):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 Jekyll and Bundler:
gem install jekyll bundler
-
Navigate to the root directory of the project and run the following command to install dependencies:
bundle install
-
Run the following command to build the site and make it available on a local server:
bundle exec jekyll serve --livereload
-
Open a browser and navigate to
http://localhost:4000
to see the site.