Logo       PBase-Foundation

GatsbyJS

Gatsby JS

Install the static site generator Gatsby JS depends on Node JS and a few image processing libraries to build websites. Here's how to build from the site's resources and code on a Git repository.

yum -y install https://pbase-foundation.com/pbase-repo.rpm
curl -sL https://rpm.nodesource.com/setup_16.x | bash -
yum -y install nodejs
yum -y install pbase-gatsby-tools
yum -y install yarn

As a regular user, create a file ~/.netrc and fill it with your real Git provider user and password.

machine gitlab.com
login myrealgitusername
password myReAlPaSsWoRd

Then clone the website source, and build it.

git clone https://gitlab.com/myrealgitusername/myrealgatsby-site.git
cd myrealgatsby-site
npm install
gatsby build

Finally, copy the public directory that was built to your website root.

More about Gatsby JS

Read more about the Gatsby JS project at:
https://www.gatsbyjs.com/