Skip to main content

Ghost

# Docker 启动
# https://hub.docker.com/_/ghost/
# 所有配置项都可以通过环境变量指定 - https://ghost.org/docs/concepts/config/#running-ghost-with-config-env-variables
# url -> url
# database__connection__host -> database.connection.host
docker run --rm -it \
-v $PWD/ghost:/var/lib/ghost/content \
-e url=http://localhost:2368 -p 2368:2368 \
--name ghost ghost:alpine

# 本地安装
# https://ghost.org/docs/install/local/
npm install ghost-cli@latest -g
# https://ghost.org/docs/api/v3/ghost-cli/
# http://localhost:2368/ghosh
ghost install local