2024-12-06 20:53:25 +08:00
|
|
|
# hangban
|
|
|
|
|
2024-12-07 08:09:00 +08:00
|
|
|
创建配置文件 config.json
|
|
|
|
```json
|
|
|
|
{
|
|
|
|
"mysql": {
|
|
|
|
"host": "",
|
|
|
|
"user": "",
|
|
|
|
"password": "",
|
|
|
|
"database": ""
|
|
|
|
}
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
2024-12-07 07:07:11 +08:00
|
|
|
```bash
|
|
|
|
# 下载到本地
|
|
|
|
git clone git@git.satori.love:satori/hangban.git
|
|
|
|
cd hangban
|
|
|
|
|
|
|
|
# 安装依赖包
|
|
|
|
npm i
|
|
|
|
|
|
|
|
# 开发环境运行
|
|
|
|
npm run dev
|
|
|
|
|
|
|
|
# 编译为生产文件
|
|
|
|
npm run build
|
|
|
|
|
|
|
|
# 生产环境运行
|
|
|
|
npm run start
|
|
|
|
|
|
|
|
# 使用守护进程运行
|
|
|
|
pm2 start npm -- run start
|
|
|
|
```
|
2024-12-07 07:50:04 +08:00
|
|
|
|
2024-12-07 07:53:13 +08:00
|
|
|
![2024-12-07 07-47-46.png](https://git.satori.love/satori/hangban/raw/branch/main/images/2024-12-07%2007-47-46.png)
|