How to Generate a Static Website Using GatsbyJS & Host the Website on Linode Server
-
Login to https://www.linode.com & create a linode server.
-
Install Ubuntu Latest LTS — Long Term Support — version on it.
-
Login to the server using SSH.
-
Install easy engine on it.
wget -qO ee rt.cx/ee && sudo bash ee
-
Create a new website using easy engine.
ee site create IP_ADDRESS —html
-
Install nodejs, npm, and gatsby-cli.
sudo apt install nodejs sudo apt install npm npm install gatsby-cli
-
Explain how Gatsby works – Presentation?
-
Create a new Gatsby site in the ee site.
gatsby new gatsby-site
-
Build the site using command:
gatsby build
-
Move the static site folder to the ee site htdocs folder.