This commit is contained in:
Liang Ding 2014-09-14 22:38:25 +08:00
parent 9ab76c1552
commit 91550d41e3
2 changed files with 21 additions and 2 deletions

View File

@ -12,8 +12,8 @@
<ol>
<li>下载 Wide 安装包</li>
<li>解压到安装路径 {wide},例如 /root/wide</li>
<li>配置 {wide}/conf/wide.json<a href="conf.html">配置项说明</a></li>
</ol>
<li>配置 {wide}/conf/<a href="conf.html">wide.json</a>(可选,默认配置应该可以工作</li>
</ol>
<h2>多用户配置</h2>
前提:需要安装 git。
@ -22,5 +22,21 @@
<li>添加用户:修改 {wide}/conf/wide.json 中的 Users</li>
<li>添加用户库:在 {wide}/data/user_workspaces/{user}/ 中 git clone 主库</li>
</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>编译 Widego build</li>
<li>配置 {wide}/conf/<a href="conf.html">wide.json</a>(可选,默认配置应该可以工作)</li>
<li>运行可执行文件 wide 或 wide.exe</li>
</ol>
</body>
</html>

View File

@ -16,6 +16,9 @@ import (
"github.com/b3log/wide/shell"
"github.com/b3log/wide/user"
"github.com/golang/glog"
_ "github.com/88250/ide_stub" // 运行时依赖,用于跳转到声明、查找使用等功能
_ "github.com/nsf/gocode" // 运行时依赖,用于代码自动完成
)
// Wide 中唯一一个 init 函数.