This commit is contained in:
Liang Ding 2014-09-02 18:06:20 +08:00
parent a576cd1fd9
commit 97d4837af6
2 changed files with 31 additions and 3 deletions

View File

@ -7,12 +7,13 @@
</head> </head>
<body> <body>
<h1>多用户</h1> <h1>多用户</h1>
支持多个用户同时使用一个 wide 服务器,每个用户有自己独立的源代码仓库,编码/运行/调式都是在自己的用户空间中进行,不会影响其他用户。 支持多个用户同时使用一个 Wide 服务器,每个用户有自己独立的源代码仓库,编码/运行/调式都是在自己的用户空间中进行,不会影响其他用户。
<h2>源代码仓库</h2> <h2>源代码仓库</h2>
使用 git 作为源码版本控制系统data/workspace/src 是主库,每个用户的源码仓库都 clone 自主库。 使用 git 作为源码版本控制系统data/workspace/src 是主库,每个用户的源码仓库都 clone 自主库。
<h2>运行时</h2> <h2>运行时</h2>
用户在运行程序时进程是跑在服务器上的,所以多用户同时运行程序时最常见的问题就是资源冲突,比如网络端口。
目前 Wide 解决不了这个问题,只能靠用户自己进行规避。
</body> </body>
</html> </html>

27
doc/zh_CN/setup.html Normal file
View File

@ -0,0 +1,27 @@
<!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/wide.json可选</li>
</ol>
现在已经可以使用用户 admin密码 admin 登录使用了。
<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>
</body>
</html>