This commit is contained in:
parent
9ab76c1552
commit
91550d41e3
|
@ -12,7 +12,7 @@
|
||||||
<ol>
|
<ol>
|
||||||
<li>下载 Wide 安装包</li>
|
<li>下载 Wide 安装包</li>
|
||||||
<li>解压到安装路径 {wide},例如 /root/wide</li>
|
<li>解压到安装路径 {wide},例如 /root/wide</li>
|
||||||
<li>配置 {wide}/conf/wide.json(<a href="conf.html">配置项说明</a>)</li>
|
<li>配置 {wide}/conf/<a href="conf.html">wide.json</a>(可选,默认配置应该可以工作)</li>
|
||||||
</ol>
|
</ol>
|
||||||
|
|
||||||
<h2>多用户配置</h2>
|
<h2>多用户配置</h2>
|
||||||
|
@ -22,5 +22,21 @@
|
||||||
<li>添加用户:修改 {wide}/conf/wide.json 中的 Users</li>
|
<li>添加用户:修改 {wide}/conf/wide.json 中的 Users</li>
|
||||||
<li>添加用户库:在 {wide}/data/user_workspaces/{user}/ 中 git clone 主库</li>
|
<li>添加用户库:在 {wide}/data/user_workspaces/{user}/ 中 git clone 主库</li>
|
||||||
</ol>
|
</ol>
|
||||||
|
|
||||||
|
<h2>从源码安装</h2>
|
||||||
|
前提:
|
||||||
|
<ol>
|
||||||
|
<li>搭建好 Go 开发环境</li>
|
||||||
|
<li>安装好 git</li>
|
||||||
|
</ol>
|
||||||
|
|
||||||
|
步骤:
|
||||||
|
<ol>
|
||||||
|
<li>通过 git clone 或下载 zip 包方式获取 Wide 源码(项目地址:<a href="https://github.com/b3log/wide">https://github.com/b3log/wide</a>)</li>
|
||||||
|
<li>获取 Wide 依赖:go get -u</li>
|
||||||
|
<li>编译 Wide:go build</li>
|
||||||
|
<li>配置 {wide}/conf/<a href="conf.html">wide.json</a>(可选,默认配置应该可以工作)</li>
|
||||||
|
<li>运行可执行文件 wide 或 wide.exe</li>
|
||||||
|
</ol>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
3
main.go
3
main.go
|
@ -16,6 +16,9 @@ import (
|
||||||
"github.com/b3log/wide/shell"
|
"github.com/b3log/wide/shell"
|
||||||
"github.com/b3log/wide/user"
|
"github.com/b3log/wide/user"
|
||||||
"github.com/golang/glog"
|
"github.com/golang/glog"
|
||||||
|
|
||||||
|
_ "github.com/88250/ide_stub" // 运行时依赖,用于跳转到声明、查找使用等功能
|
||||||
|
_ "github.com/nsf/gocode" // 运行时依赖,用于代码自动完成
|
||||||
)
|
)
|
||||||
|
|
||||||
// Wide 中唯一一个 init 函数.
|
// Wide 中唯一一个 init 函数.
|
||||||
|
|
Loading…
Reference in New Issue