Skip to content
This repository was archived by the owner on Jan 10, 2023. It is now read-only.

Commit b66870e

Browse files
高山高山
高山
authored and
高山
committed
初始化代码
1 parent 840effc commit b66870e

File tree

1 file changed

+42
-1
lines changed

1 file changed

+42
-1
lines changed

README.md

+42-1
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,50 @@ gopub已在我们预发布和生产环境完成37000+次稳定部署,支持单
2929
### 源码下载
3030

3131
``` shell
32-
32+
# 克隆项目
33+
git clone https://gitee.com/dev-ops/gopub.git
34+
35+
# 编译前端,npm较慢可使用cnpm
36+
37+
cd vue-gopub
38+
npm install
39+
npm run build
40+
41+
#修改配置 数据库配置文件在 src/conf/app.conf
42+
43+
#编译,control需要给可执行权限,并修改go安装目录 export GOROOT=/usr/local/go
44+
./control build
45+
46+
#执行数据库初始化
47+
./control init
48+
49+
#启动服务
50+
./control start
51+
52+
#停止服务
53+
./control stop
54+
55+
#重启服务
56+
./control restart
3357
```
3458

59+
### 快速使用
60+
61+
``` shell
62+
# 下载项目release包,无需安装go环境和node环境
63+
64+
65+
#给control和src/gopub给可执行权限
66+
67+
#启动服务
68+
./control start
69+
70+
#停止服务
71+
./control stop
72+
73+
#重启服务
74+
./control restart
75+
```
3576

3677
## Getting started
3778
### 1. 项目配置

0 commit comments

Comments
 (0)