- 刷16.04/18.04 biotic beaver 实测开机慢30s左右
- 选主机. 这次买的bandwagon, 获得分配的ip和port
- django环境在本地搭好,参考zmrenwu的博客,virtualenv中装好django,python3.x等,localhost确认网页正常运行
- vps上console或本地直连ssh,创建新user取代root,分配权限.默认情况下所有ubuntu机全有openssh,不需额外安装
- ssh后进行nginx部署,修改系统config等操作,从github上pull已经完成的代码
- 调试,blog完成
- 分别下载hexo,next并将hexo中config调成next主题
- 修改next的config达到合适效果,修改hexo的config的deploy部分,下载next需要的部署插件,nodejs等
- 上传.
在next中添加gitment评论
发表于
|
分类于
website
这次是关于在next中添加gitment评论.
其实next已经完全帮用户嵌入好了,几乎不需要任何操作,只需要在_config.yml中把
gitment状态调成enable,如果刷新之后没有显示,注意检查其他评论插件是否同时被开启,关闭之后即OK.
hexo categories和tags页面不显示解决办法
发表于
|
分类于
webiste
1.默认是没有 categories 和 tags 的需要1
2hexo new page "tags"
hexo new page "categories"
2.编辑 /tags/index.md 以及/categories/index.md1
2type: "tags"
layout: "tags"
1 | type: "categories" |
SSH :connect to host localhost port 22 Connection refused
发表于
|
分类于
vps
这次用的bandwagon,购买成功后系统分配地址与端口,在本地如果出现上述情况,检查是否在command中
附上-p, 因为默认端口是22.
1 | ssh -p xxxx root@xxx.xxx.xxx.xxx |
Hello World
发表于
Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.
Quick Start
Create a new post
1 | $ hexo new "My New Post" |
More info: Writing
Run server
1 | $ hexo server |
More info: Server
Generate static files
1 | $ hexo generate |
More info: Generating
Deploy to remote sites
1 | $ hexo deploy |
More info: Deployment