wide/doc/zh_CN/setup.html

48 lines
1.8 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Wide - 安装</title>
</head>
<body>
<h1>安装</h1>
<h2>基础安装</h2>
<ol>
<li>下载 Wide 安装包</li>
<li>解压到安装路径 {wide},例如 /root/wide</li>
<li>配置 {wide}/conf/<a href="conf.html">wide.json</a>(可选,默认配置应该可以工作)</li>
</ol>
<h2>多用户配置</h2>
前提:需要安装 git。
<ol>
<li>初始化主库:在 {wide}/data/workspace/src 下执行 git init</li>
<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>通过 <code>git clone</code> 或下载 zip 包方式获取 Wide 源码(项目地址:<a href="https://github.com/b3log/wide">https://github.com/b3log/wide</a></li>
<li>获取依赖,在 Wide 源码目录下执行:
<ul>
<li><code>go get -u</code></li>
<li><code>go get -u github.com/88250/ide_stub</code></li>
<li><code>go get -u github.com/nsf/gocode</code></li>
</ul>
<li>编译:在 Wide 源码目录下执行 <code>go build</code></li>
<li>配置 {wide}/conf/<a href="conf.html">wide.json</a>(可选,默认配置应该可以工作)</li>
<li>运行可执行文件 wide 或 wide.exe</li>
</ol>
</body>
</html>