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

推荐订阅源

T
The Blog of Author Tim Ferriss
Know Your Adversary
Know Your Adversary
P
Palo Alto Networks Blog
D
Darknet – Hacking Tools, Hacker News & Cyber Security
K
Kaspersky official blog
L
LINUX DO - 热门话题
P
Proofpoint News Feed
P
Privacy & Cybersecurity Law Blog
Google DeepMind News
Google DeepMind News
Attack and Defense Labs
Attack and Defense Labs
Cisco Talos Blog
Cisco Talos Blog
AI
AI
L
LINUX DO - 最新话题
H
Heimdal Security Blog
Hacker News: Ask HN
Hacker News: Ask HN
Webroot Blog
Webroot Blog
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
The GitHub Blog
The GitHub Blog
I
Intezer
Blog — PlanetScale
Blog — PlanetScale
有赞技术团队
有赞技术团队
S
Securelist
博客园_首页
IT之家
IT之家
Schneier on Security
Schneier on Security
博客园 - 叶小钗
罗磊的独立博客
WordPress大学
WordPress大学
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
MongoDB | Blog
MongoDB | Blog
P
Proofpoint News Feed
阮一峰的网络日志
阮一峰的网络日志
A
Arctic Wolf
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
W
WeLiveSecurity
The Register - Security
The Register - Security
D
DataBreaches.Net
S
Security @ Cisco Blogs
Security Archives - TechRepublic
Security Archives - TechRepublic
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
腾讯CDC
Recorded Future
Recorded Future
NISL@THU
NISL@THU
N
News and Events Feed by Topic
T
Tailwind CSS Blog
N
News and Events Feed by Topic
Cyberwarzone
Cyberwarzone
T
Tor Project blog
www.infosecurity-magazine.com
www.infosecurity-magazine.com

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官方的教程,一步步配置而来。