Skip to content

Instantly share code, notes, and snippets.

@asharirfan asharirfan/ReadMe.md
Last active Oct 17, 2018

Embed
What would you like to do?
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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.