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-preconfig.rpm
yum -y install pbase-preconfig-nodejs12
yum -y install pbase-gatsby-tools

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.