hexo
1. 安装部署
npm install hexo-cli -g hexo init blog cd blog npm install # hexo s hexo server
|
2. 使用 pm2 管理 hexo
- 启动:
pm2 start hexo
- 查看:
pm2 list

3. theme:
4. 使用图片
6. nginx 支持
server { listen 80; server_name <server_name>; autoindex on; autoindex_exact_size off; autoindex_localtime on; index index.html index.htm; access_log /pth/<>/access.log; error_log /pth/<>/error.log; location / { proxy_pass http://127.0.0.1:4000; } }
|
7. 生成部署到 git
_config.yml
deploy: type: git repo: https://github.com/coghost/coghost.github.io branch: master
|
命令