Skip to content

Instantly share code, notes, and snippets.

@asharirfan
Last active June 10, 2022 17:10
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save asharirfan/9343314e8329cba662123b24fb40b523 to your computer and use it in GitHub Desktop.
Save asharirfan/9343314e8329cba662123b24fb40b523 to your computer and use it in GitHub Desktop.
How to Generate a Static Website Using GatsbyJS & Host the Website on Linode Server

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.

@cboydstun
Copy link

EasyEngine only offers support for Ubuntu 12.04, 14.04 and 16.04 as well as Debian 7 and 8.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment