mattermost: 1.0 build



0. 环境准备

mattermost 服务端用的是golang编写,然后服务端有提供前端web服务

1. 编译过程

# step 1. 下载代码
cd ~/go/src
# 代码版本,自己去切换
git clone https://github.com/xiaotuanyu120/mattermost-webapp.git
git clone https://github.com/xiaotuanyu120/mattermost-server.git

# step 2. 编译前端
cd mattermost-webapp
npm install
# 以下操作见下面的注释里面的引用
cd node_modules/mattermost-redux/
npm install
npm run build
cd ../../
npm run build

# step 3. 编译后端
cd ../mattermost-server
make package
# 如果只是编译mattermost这个二进制命令,可以直接编译`go build cmd/mattermost/main.go`

编译时提示Module not found:的解决办法