博客已经长草好久了,虽然中间有很多次都想啰嗦一下,可到最后都…………。虽然博客内容没怎么更新,但折腾还是常用的,倒腾个主题、平台啥的——算是瞎折腾吧,把最主要的事——内容扔到脑后,,没办法这就是我。我的博客用过Wordpress,Typecho,Ghost等,虽然比较会折腾,但其实我也就只会抄抄写写,深层次的只能摊手了。
回归 Ghost 有一小段日子了,现在用 Docker 部署感觉非常方便(想想以前搭建各种环境啥的,那是一个累),当然 Docker 部署在日常使用中也碰到一些问题,有些已经解决了(比如首页默认显示 localhost:2368 等),有些还在摸索解决中,谁叫俺学艺不精呢。
兜兜转转,晃一晃俺们又从 Typecho 转回 Ghost 了,倒不是 Typecho 不好,只是还是挺喜欢 Ghost 的风格,要是 Ghost 出个中文版的就好了(英文水平太 Low 了,没办法)。现在部署 Ghost 也比较简单,想省力可以直接 Docker 一下,分分钟就可以把 Ghost 搭建好,不过方便是方便,就是要修改 Ghost 配置、添加个啥的有点麻烦(我也还是个 Docker 新手,还有太多的不会),下面就来说说修改默认首页地址。
鉴于最近github从中国大陆访问网速较慢,而且现在国内阿里云oss、腾讯云对象储存等的开始支持将静态网站部署在上面,而且访问速度还可以,加上最近本博主又开始在折腾Hexo了,Hexo的好处是可以生成静态文件,这样就可以多个地方同时在线,比如Github、Coding、OSS等,目前本站已经部署在前面说的那个地方,今天顺便把阿里云的OSS也上了吧。另外像腾讯云的COS上部署也差不多,改天也可以再尝试一下。
由于目前我用的是Mirages主题,所以接下来的步骤也按这个主题来,当然主题不同,也只是改的地方不一样而已,相信这都不是事,要是真有事了欢迎留言哈。
本篇文章纯搬运 左岸大佬 的教程,之所以搬运也是为了记录下过程,也便于以后时间长了还能再参考着折腾(没办法,文章写不出来多少,折腾这些东西无用的却是十分的来劲)废话不多说,赶紧码字+拷贝记录下来。
由于之前Symantec(赛门铁克)家的SSL证书问题,后在Namecheap家免费换了Comodo三年证书(好像那时候好多人都换了吧),后来才知道这证书也不是三年都免费的,只是第一年免费后续就要交钱了,这不一年时间转眼即逝,邮箱也连续收到了好多封Namecheap的续费邮件,看了一下一年要好几十块大洋就没续了(穷屌丝一个呀……),不过除了火狐浏览器会报错,其它像谷歌、IE都可以正常访问,安卓、苹果手机访问也OK,用SSL证书检测显示证书已被吊销,为了让火狐不报错,那就用免费证书Let's encrypt,反正用Oneinstack也不用担心三个月一续的事,那就动手吧。换好之后再上SSL证书检测网站查看,评级由原来的F变为A+了,不过PCI DSS这项显示不合规,原因是因为:开启TLS1.0将导致PCI DSS不合规,为了一些兼容性就无所谓了(其实刚才在折腾过程中,又把Ghost弄挂了,就是因为这项不合规的事,结果是越搞越错,越错就Over了)。目前博客已经可以正常访问了,俺们也可以歇歇了,看会电影吧。
据说我的博客已经长草好一会了,的确如此,最近不知道是懒了还是懒了,又或是懒了(这不还是懒嘛233)。小博经历了很多,不论是空间还是程序,可谓是历经沧桑呀(越扯越远了……)。就像现在用的是Ghost作为博客程序,由于Ghost官方更新太频繁了,后来就犯懒没更新了,这不今天上线一瞧,人家都已经更新到2.0.3了,我还是1.21.5,差的好像有点大嘛,那咋办?咱也升呗!~为了保险起见,还是在后台对硬盘做了个快照(感谢腾讯云,快照目前还是免费的,这点要批评一下套路云,啥啥都开始收费),接着翻翻Ghost官网的说明,还好瞄了一眼,要不然可能会出事,原来我还不能直接升级到2.0,得先升级到1.X的最高版,然后才能升级到2.0,具体的看官网操作说明:安装最新的Ghost CLI版本。Ghost 2.0升级需要Ghost-CLI 1.9.0或更高版本。我们支持的服务器设置具有单个系统范围的node.js版本,因此install / update命令如下所示:如果您未遵循支持的安装指南,请根据需要调整此步骤。2. 运行update命令从您的发布目录中(通常cd /var/www/ghost/但相应地调整
Feng
一个爱折腾的家伙