惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

博客园_首页
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
P
Proofpoint News Feed
G
Google Developers Blog
B
Blog
Engineering at Meta
Engineering at Meta
阮一峰的网络日志
阮一峰的网络日志
The Register - Security
The Register - Security
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
博客园 - 叶小钗
The Cloudflare Blog
The Hacker News
The Hacker News
D
Darknet – Hacking Tools, Hacker News & Cyber Security
C
CXSECURITY Database RSS Feed - CXSecurity.com
雷峰网
雷峰网
F
Fortinet All Blogs
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
H
Hackread – Cybersecurity News, Data Breaches, AI and More
酷 壳 – CoolShell
酷 壳 – CoolShell
Last Week in AI
Last Week in AI
T
Threat Research - Cisco Blogs
A
About on SuperTechFans
量子位
Recorded Future
Recorded Future
博客园 - 三生石上(FineUI控件)
H
Help Net Security
Help Net Security
Help Net Security
P
Palo Alto Networks Blog
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
T
Troy Hunt's Blog
W
WeLiveSecurity
V
Vulnerabilities – Threatpost
T
The Exploit Database - CXSecurity.com
Know Your Adversary
Know Your Adversary
Apple Machine Learning Research
Apple Machine Learning Research
Scott Helme
Scott Helme
N
News | PayPal Newsroom
AWS News Blog
AWS News Blog
D
DataBreaches.Net
Blog — PlanetScale
Blog — PlanetScale
MongoDB | Blog
MongoDB | Blog
B
Blog RSS Feed
腾讯CDC
J
Java Code Geeks
Microsoft Azure Blog
Microsoft Azure Blog
TaoSecurity Blog
TaoSecurity Blog
GbyAI
GbyAI
Y
Y Combinator Blog
Hacker News - Newest:
Hacker News - Newest: "LLM"
D
Docker

Feng's blog

家里小朋友发烧了 - Feng's blog 头一回给自己理发 - Feng's blog 兰溪一日游 - Feng's blog 关于博客的那些年 - Feng's blog VMware(ESXI)官网账号注册报错的解决办法 - Feng's blog 市内一日游 - Feng's blog 隔离日志之第五天 - Feng's blog 隔离日志之第四天 - Feng's blog 隔离日志之第三天 - Feng's blog
兜兜转转又回到Ghost - Feng's blog
Feng · 2022-10-22 · via Feng's blog

博客已经长草好久了,虽然中间有很多次都想啰嗦一下,可到最后都…………。虽然博客内容没怎么更新,但折腾还是常用的,倒腾个主题、平台啥的——算是瞎折腾吧,把最主要的事——内容扔到脑后,,没办法这就是我。我的博客用过Wordpress,Typecho,Ghost等,虽然比较会折腾,但其实我也就只会抄抄写写,深层次的只能摊手了。

之所以这次又回到Ghost,那是因为骨子里的那股欣赏吧,我是从0.7.4中文版本(当时国内的汉化版本)开始用起的,后面因为一些原因又辗转到Wordpress,Typecho。这次回来除了正常部署外,还把图片从本地改成又拍云托管,同时取消了评论(具体什么时候恢复评论到时再看吧,至少短时间内不会有),下面就把折腾中碰到的一些问题记录一下。

又拍云的Ghost插件用的是这家的:https://github.com/leoskey/ghost-upyun-store ,但是部署我是按另外一个办法,这家给的办法我试了老是报错,可能是我哪里没弄好吧。

  • 通过 Git
    在Ghost目录下的 content 在命名中创建一个新文件夹 adapters/storage
  • 克隆到 storage 目录中
cd [path/to/ghost]/content/adapters/storage
git clone https://github.com/leoskey/ghost-upyun-store.git
  • 安装依赖项
cd ghost-upyun-store
npm i
  • 修改Ghost目录下的 config.production.json ,按格式加入下列代码:
"storage": {
  "active": "ghost-upyun-store",
  "ghost-upyun-store": {
    "bucket": "<your bucket name>",
    "operator": "<your operator>",
    "password": "<your password>",
    "prefix": "YYYY/MM/",
    "domian": "<your bucket domain>"
  }
}

注意,这里的 <your bucket domain> 要写成 https://绑定在又拍云的域名 或者 http://绑定在又拍云的域名 。如果不带 https:// http:// 的域名,那么图片上传后,文章显示的路径会出错导致不能正常显示!

我这回部署的Ghost并没使用Docker,那是因为本人Docker玩的还不是很溜,经常搞崩容器导致出错,所以这次老老实实采用Ghost官方的教程,一步步配置而来。