我试用了Ghost。(Wǒ shìyòng le Ghost.)

幽灵:将您的观众转化为生意

ghost.org_(1280x720).png

Ghost是指(来自英文维基百科的解释)

Ghost是一个免费且开源的博客平台,使用JavaScript编写,并在MIT许可下进行分发。它旨在简化个人博客和在线出版物的在线发布过程。

日本語での翻訳

Ghost是一个用JavaScript编写的免费开源的博客平台,在MIT许可下分发,旨在简化个人博主和在线出版物的在线发布流程。

在官方网站上也有类似WordPress的选择。

 

由于在Docker上轻松测试成功,我会记录下来。

建立环境

因为Docker Hub上有官方镜像,所以我们将使用它。他们还提供了细心准备的docker-compose.yaml文件。

 

version: '3.1'

services:

  ghost:
    image: ghost:4-alpine
    restart: always
    ports:
      - 8080:2368
    environment:
      # see https://ghost.org/docs/config/#configuration-options
      database__client: mysql
      database__connection__host: db
      database__connection__user: root
      database__connection__password: example
      database__connection__database: ghost
      # this url value is just an example, and is likely wrong for your environment!
      url: http://localhost:8080
      # contrary to the default mentioned in the linked documentation, this image defaults to NODE_ENV=production (so development mode needs to be explicitly specified if desired)
      #NODE_ENV: development

  db:
    image: mysql:8.0
    restart: always
    environment:
      MYSQL_ROOT_PASSWORD: example

使用Docker Compose一键启动

docker-compose up

当浏览日志时,Ghost在MySQL初始化完成之前会启动失败,但经多次重试,最终会成功启动。

ghost_1  | [2022-05-07 10:20:28] INFO Ghost URL Service Ready in 21.428s
ghost_1  | [2022-05-07 10:20:28] INFO Ghost booted in 21.499s
ghost_1  | [2022-05-07 10:20:28] INFO Adding offloaded job to the queue
ghost_1  | [2022-05-07 10:20:28] INFO Scheduling job update-check at 36 3 6 * * *. Next run on: Sun May 08 2022 06:03:36 GMT+0000 (Coordinated Universal Time)

只要Ghost booted的日志出现,就表示启动完成。

让我们访问一下(适合一般人的网站)。

在浏览器中访问http://localhost:8080。

localhost_8080_coming-soon_(1280x720).png

很时尚!

让我们访问一下(管理员专用网站)。

管理者可以通过http://localhost:8080/ghost/访问管理界面。(类似于WordPress的wp-admin/)

localhost_8080_ghost_(1280x720).png

当初始设置完成后,以下项目将显示。

    • Write your first post

 

    • Customize your site

 

    • Import menbers

 

    Explole Ghost admin
localhost_8080_ghost_(1280x720) (1).png

我会分别查看。

localhost_8080_ghost_(1280x720) (5).png

整体上来说,它非常简洁。

你也可以改变主题。

localhost_8080_ghost_(1280x720) (8).png

特点

image.png

综上所述

我试着用了Ghost。

我在Google趋势上查看了一下,虽然“Ghost”是一个常见的词,但我并不太理解。

trends.google.co.jp_trends_explore_cat=13&q=wordpress,ghost(1280x720).png

DockerHub上的下载量中,WordPress超过了10亿次,而其他像kibana和cassandra等官方镜像则超过了1亿次。人们确实很喜欢WordPress。

bannerAds