hexo部署过程问题与结局方案
总阅读次
将hexo根目录移动后提示少插件
1 | takethat@acer /e/hexo-blog_local-bitlock |
解决方法:
在对应的目录下
1 | E:\hexo-blog_local-bitlock\node_modules |
删除报错的插件文件夹
1 | hexo-generator-feed |
文件夹??
hexo文章标签数目不对
先移除博客根目录下的**.deploy_git文件夹**和 db.json文件,然
1 | hexo clean #清除缓存 |
七牛imageView接口
• 在列表等页面,针对图片地址,加上 ?imageView2/3/w/200/h/100/q/90
,这样,在列表页,会对用户上传的图片,在列表页上按照 宽200px、高100px、质量为原图的90%进行展示;
• 在产品的详情页,针对图片地址,加上 ?imageView2/2/w/600/q/95
,这样,在详情页面,会对用户上传的图片,按照宽最多为600px、高自适应、质量95%进行展示;
建议
建议PC端用
1 | ?imageView2/2/h/600 |
进行裁剪图片
npm问题
npm换源,
1
npm install -gd express --registry=http://registry.npm.taobao.org
只需要使用–registry参数指定镜像服务器地址,为了避免每次安装都需要–registry参数,可以使用如下命令进行永久设置:
1
npm config set registry http://registry.npm.taobao.org
gulp失败
1 | takethat MINGW32 /d/github/resume_takethat/resume_takethat/test_new/Resume |
解决:
gullp 报错
1
```
# SSL
查看证书是否过期:
[root@VM_0_8_centos ~]# openssl x509 -noout -dates -in /etc/letsencrypt/live/vivatakethat.com/cert.pem
执行更新操作:
`/home/certbot `目录下:
1 | # ./certbot-auto renew --dry-run |
HTTPS 简介及使用官方工具 Certbot 配置 Let’s Encrypt SSL 安全证书详细教程
[Let’s Encrypt(certbot) renew 证书更新失败,Deserialization error: Could not decode ‘status’ (u’ready’): …] (https://www.jianshu.com/p/798efb9b4ab4)
- 更新失败情况:
[root@VM_0_8_centos certbot]# ./certbot-auto renew
Upgrading certbot-auto 1.3.0 to 1.6.0…
Couldn’t download https://raw.githubusercontent.com/certbot/certbot/v1.6.0/letsencrypt-auto-source/letsencrypt-auto. <urlopen error [Errno 111] Connection refused>
解决方法;
1 | [root@VM_0_8_centos certbot]# ./certbot-auto renew --no-self-upgrade |