Deploy a Jekyll site.

Jekyll is an open-source framework for creating websites, based around Markdown with Liquid templates. In this guide, you will create a new Jekyll application and deploy it using Youappz Sitez. You use the jekyll CLI to create a new Jekyll site.

Installing Jekyll

Jekyll is written in Ruby, meaning that you will need a functioning Ruby installation, like rbenv, to install Jekyll.

To install Ruby on your computer, follow the rbenv installation instructions and select a recent version of Ruby by running the rbenv command in your terminal:

$ rbenv install 2.7.2

With Ruby installed, you can install the jekyll Ruby gem:

$ gem install jekyll

Creating a new project

With Jekyll installed, you can create a new project running the jekyll new in your terminal:

$ jekyll new my-jekyll-site

Create a base index.html in your newly created folder to give your site content:

<!DOCTYPE html>
<html> <head> <meta charset="utf-8" /> <title>Hello from Youappz Sitez</title> </head> <body> <h1>Hello from Youappz Sitez</h1> </body>
</html>

Optionally, you may use a theme with your new Jekyll site if you would like to start with great styling defaults. For example, the minimal-mistakes theme has a "Starting from jekyll new" section to help you add the theme to your new site.

Deploying with Youappz Sitez

Deploy your site to Sitez by running the following commands

cd my-jekyll-site
appz create -n my-jekyll-site
appz deploy -d _site

In less than 30 seconds your website will be deployed to an https URL on our global CDN.

For the complete guide to deploying your first site to Youappz Sitez, refer to the Get started guide.

After deploying your site, you will receive a unique subdomain for your project on *.sitez.live. Every time you deploy your Gatsby site, Youappz Sitez will automatically rebuild your project and deploy it. You will also get access to preview deployments on every deploy, so you can preview how changes look to your site before deploying them to production.

Updated at Mon, Jan 24, 2022