We're now ready to push the site to GitHub. This file will ensure that Netlify always uses the same version of Jekyll that you used to build your site, thus avoiding any nasty surprises. This will install the jekyll gem and create a file called Gemfile.lock. In the terminal, run the following command: $ bundle init
GEM INSTALL JEKYLL PATH NOT FOUND HOW TO
This guide will talk through the steps on how to create a repository for your site using GitHub. In order for Netlify to be able to continuously deploy your site, your site must be hosted in a Git repository. This will create a version of your site that you can access at Congratulations! You've locally deployed a Jekyll 4.0 site with Netlify. Jekyll can act as a server so that you can preview your content: $ jekyll serve Jekyll will create a folder with all the necessary elements for your project: $ jekyll new PATH/TO/projectĬhange to your new directory: $ cd PATH/TO/project Open your terminal, and enter the following command: $ gem install jekyll This guide assumes you have Ruby and RubyGems installed. Otherwise, let's begin! Installing Jekyll If you already have a Jekyll 4.0 site prepared, you can jump ahead to Connecting to Netlify. Since then, and with the introduction of Jekyll 4.0, deploying a Jekyll site to Netlify–with continuous deployment–has never been easier. Below are the package versions used:Ī few years ago, we originally posted our Jekyll 3.0 on Netlify step-by-step guide. This guide was most recently updated on Wed, Apr 2nd, 2020. Guides & Tutorials A Step-by-Step Guide: Jekyll 4.0 on Netlify