Using Ghost + Buster on PI2 for Github blog page.

stop ghost:

pi@homepi:~/gh $ ghost stop

start in development:

pi@homepi:~/gh $ ghost strart -D

dev mode is using sqlite3 DB and for me it is enough, instead of prod is using Mysql/MariaDB and u have to create DB,USER,PASS,GRANT PERMISSIONS, etc...

pi@homepi:~/gh $ pwd
/home/pi/gh
pi@homepi:~/gh $ ghost ls
┌─────────────┬──────────┬─────────┬───────────────────────┬───────────────────┬──────┬─────────────────┐
│ Name        │ Location │ Version │ Status                │ URL               │ Port │ Process Manager │
├─────────────┼──────────┼─────────┼───────────────────────┼───────────────────┼──────┼─────────────────┤
│ ghost-local │ ~/gh     │ 2.3.0   │ running (development) │ http://belomor.nl │ 2368 │ local           │
└─────────────┴──────────┴─────────┴───────────────────────┴───────────────────┴──────┴─────────────────┘
pi@homepi:~/gh $ cat ./config.development.json
{
  "url": "http://belomor.nl",
  "server": {
    "port": 2368,
    "host": "127.0.0.1"
  },
  "database": {
    "client": "sqlite3",
    "connection": {
      "filename": "/home/pi/gh/content/data/ghost-local.db"
    }
  },
  "mail": {
    "transport": "Direct"
  },
  "logging": {
    "transports": [
      "file",
      "stdout"
    ]
  },
  "process": "local",
  "paths": {
    "contentPath": "/home/pi/gh/content"
  }
}




Use ssh local port tunnel from L 127.0.0.1 2368 to R remote-ip 2368, then:

http://localhost:2368/ghost

Create story ,publish. you can review on home page:

http://localhost:2368

or you can use buster to review as well on default TCP port 9000, but before run:

pi@homepi:~/gh $ buster generate

pi@homepi:~/gh $ buster preview

http://192.168.168.48:9000/

pi@homepi:~/gh $ buster deploy

Username for 'https://github.com': g0053 Password for 'https://g0053@github.com':
Good job! Deployed to Github Pages.

  .',;:cc;,'.    .,;::c:,,.                                                                                                                                                                         
 ,ooolcloooo:  'oooooccloo:    -------------------- 
 .looooc;;:ol  :oc;;:ooooo'    OS: Raspbian GNU/Linux 9.6 (stretch) armv7l 
   ;oooooo:      ,ooooooc.     Model: Raspberry Pi 2 Model B Rev 1.1 
     .,:;'.       .;:;'.       Kernel: 4.14.79-v7+ 
     .... ..'''''. ....        Uptime: 1 hour, 44 minutes 
   .''.   ..'''''.  ..''.      Packages: 1218 
   ..  .....    .....  ..      Shell: bash 4.4.12 
  .  .'''''''  .''''''.  .     CPU: ARMv7 rev 5 (v7l) (4) @ 0.9GHz 
.'' .''''''''  .'''''''. ''.   Memory: 379MB / 927MB 
'''  '''''''    .''''''  '''   ​ 
.'    ........... ...    .'.   ████████████████████████ 
  ....    ''''''''.   .''.     ​ 
  '''''.  ''''''''. .''''' 
   '''''.  .'''''. .'''''. 
    ..''.     .    .''.. 
          .''''''' 
           ......