Host a Website with Ghost

By using Diode, we can use a Raspberry Pi to host a website that anyone in the world can access.

Ghost is a great little CMS and web hosting platform that is light weight and easy to use. This article will run you through steps to get Ghost running on your Raspberry Pi so you can start publishing Web3.0 websites and content.

Environment and Pre-requisites:

This is the setup used in this article. Your setup may be different - if so, some steps may not be exactly the same.

Installation

  1. Install the Ghost CLI

The Ghost CLI (Command Line Interface) will help you install Ghost.

  • Open up your SSH terminal session and type:
sudo npm install -g ghost-cli@latest
  1. Install Ghost from the CLI

Now that the CLI is installed, you can install Ghost locally.  

  • Open up an SSH terminal session
  • Make a new directory for your Ghost installation and go into it
mkdir ghost
cd ghost
  • Install ghost
ghost install local
  • Type "ghost ls" to see your ghost configuration
  1. Try Ghost Out

Ghost is now running on your rPi, but you can't yet see it from your computer - it is running on the rPi's localhost.  If available, switch over to your rPi keyboard/mouse/LCD setup and pull up a browser and type "http://localhost:2368" to setup and view your Ghost website.

To interact with it remotely, you can either reconfigure the URL to be the rPi's IP address (it will then be available on your local network), or you can run the Diode Client on the rPi to view and manage the website anywhere in the world.

IMPORTANT NOTE: make sure to configure your URL or your images won't work correctly!

ghost config --url http://192.168.50.21
or
ghost config --url http://<your domain>.diode.link


How did we do?


Powered by HelpDocs (opens in a new tab)

Powered by HelpDocs (opens in a new tab)