https://github.com/baohaoyu/oos_blog_server
koa2搭建的hexo博客,配有上传到阿里云OOS接口
https://github.com/baohaoyu/oos_blog_server
aliyun aliyun-oss hexo koa2
Last synced: 3 months ago
JSON representation
koa2搭建的hexo博客,配有上传到阿里云OOS接口
- Host: GitHub
- URL: https://github.com/baohaoyu/oos_blog_server
- Owner: BaoHaoYu
- Created: 2019-10-12T06:24:07.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-12-06T14:45:51.000Z (over 2 years ago)
- Last Synced: 2025-04-09T20:15:52.514Z (3 months ago)
- Topics: aliyun, aliyun-oss, hexo, koa2
- Language: TypeScript
- Size: 339 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 10
-
Metadata Files:
- Readme: README.MD
Awesome Lists containing this project
README
# koa2博客服务
## 安装
按顺序执行如下命令
```bash
git clone https://github.com/BaoHaoYu/oos_blog_server.git
cd oos_blog_server
yarn
```## 配置config.ts
```ts
export default {
// 端口
port: '9000',
// blog静态目录
blogPublic: '/opt/www/hexo-blog/public',
// 域名
region: '',
// 阿里云accessKeyId
accessKeyId: '',
// 阿里云accessKeySecret
accessKeySecret: '',
}
```region
accessKeyId和accessKeySecret
blogPublic为`hexo generate`生成静态文件的位置
## 通过pm2运行项目
```bash
pm2 start pm2.json
```