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

Commit

Permalink
初始化代码
Browse files Browse the repository at this point in the history
  • Loading branch information
高山 authored and 高山 committed Apr 8, 2018
1 parent 840effc commit b66870e
Showing 1 changed file with 42 additions and 1 deletion.
43 changes: 42 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,50 @@ gopub已在我们预发布和生产环境完成37000+次稳定部署,支持单
### 源码下载

``` shell

# 克隆项目
git clone https://gitee.com/dev-ops/gopub.git

# 编译前端,npm较慢可使用cnpm

cd vue-gopub
npm install
npm run build

#修改配置 数据库配置文件在 src/conf/app.conf

#编译,control需要给可执行权限,并修改go安装目录 export GOROOT=/usr/local/go
./control build

#执行数据库初始化
./control init

#启动服务
./control start

#停止服务
./control stop

#重启服务
./control restart
```

### 快速使用

``` shell
# 下载项目release包,无需安装go环境和node环境


#给control和src/gopub给可执行权限

#启动服务
./control start

#停止服务
./control stop

#重启服务
./control restart
```

## Getting started
### 1. 项目配置
Expand Down

0 comments on commit b66870e

Please sign in to comment.