Skip to content

Commit

Permalink
Merge branch 'master' of github.com:Coding/WebIDE-Workspace
Browse files Browse the repository at this point in the history
  • Loading branch information
hackape committed Apr 14, 2017
2 parents 0dc85a6 + 4d5152a commit 550768b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
7 changes: 4 additions & 3 deletions README-zh.md
@@ -1,4 +1,5 @@
# Coding WebIDE
[![License](https://img.shields.io/badge/License-BSD%203--Clause-blue.svg)](https://github.com/Coding/WebIDE/blob/master/LICENSE) [![Build Status](https://travis-ci.org/Coding/WebIDE.svg?branch=master)](https://travis-ci.org/Coding/WebIDE) [![Docker Stars](https://img.shields.io/docker/stars/webide/webide.svg)](https://hub.docker.com/r/webide/webide 'DockerHub') [![Docker Pulls](https://img.shields.io/docker/pulls/webide/webide.svg)](https://hub.docker.com/r/webide/webide 'DockerHub')

README: [English](https://github.com/Coding/WebIDE/blob/master/README.md) | [中文](https://github.com/Coding/WebIDE/blob/master/README-zh.md)

Expand Down Expand Up @@ -69,19 +70,19 @@ git submodule update

`backend/src/main/resources/application.properties` 包括用户、项目、数据库等配置,可以通过修改配置定制服务:

* **SPACE_HOME:** 存放 workspace 的目录,默认为 ${"user.home"}/.workspace
* **SPACE_HOME:** 存放 workspace 的目录,默认为 `~/.coding-ide/workspace`
* **server.port:** 应用启动的端口
* **USERNAME:** 用户名,git 提交时会使用该值作为 user.name,默认为 coding。
* **EMAIL:** 用户邮箱,git 提交时会使用该值作为 user.email,默认为 coding@coding.net
* **AVATAR:** 用户头像
* **CODING_IDE_HOME:** 应用数据存放目录
* **CODING_IDE_HOME:** 应用数据存放目录,默认为 `~/.coding-ide`

修改配置后,需要重启应用。另外如果修改了 `USERNAME``EMAIL` 的值,会在创建新的 Workspace 时生效。

## docker 版

```
docker run -p 8080:8080 --name webide webide/webide
docker run -p 8080:8080 -v coding-ide-home:/root/.coding-ide webide/webide
```

更多 docker 命令,参照 wiki [English](https://github.com/Coding/WebIDE/wiki/Docker-Server.en) [中文](https://github.com/Coding/WebIDE/wiki/Docker-Server.zh)
7 changes: 4 additions & 3 deletions README.md
@@ -1,4 +1,5 @@
# Coding WebIDE
[![License](https://img.shields.io/badge/License-BSD%203--Clause-blue.svg)](https://github.com/Coding/WebIDE/blob/master/LICENSE) [![Build Status](https://travis-ci.org/Coding/WebIDE.svg?branch=master)](https://travis-ci.org/Coding/WebIDE) [![Docker Stars](https://img.shields.io/docker/stars/webide/webide.svg)](https://hub.docker.com/r/webide/webide 'DockerHub') [![Docker Pulls](https://img.shields.io/docker/pulls/webide/webide.svg)](https://hub.docker.com/r/webide/webide 'DockerHub')

README: [English](https://github.com/Coding/WebIDE/blob/master/README.md) | [中文](https://github.com/Coding/WebIDE/blob/master/README-zh.md)

Expand Down Expand Up @@ -74,20 +75,20 @@ Server runs on port 8080 by default, visit localhost:8080 to check it out.

`backend/src/main/resources/application.properties` contains configurations of user, project, database, etc., you can change these parameters to meet your need:

* **SPACE_HOME:** path to your workspace directory, default to `${"user.home"}/.workspace`
* **SPACE_HOME:** path to your workspace directory, default to `~/.coding-ide/workspace`
* **server.port:** backend server port
* **USERNAME:** username, used by git as its `user.name` config when commit, defaults to "coding"
* **EMAIL:** email, used by git as its `user.email` config when commit, defaults to "coding@coding.net"
* **AVATAR:** user's avatar
* **CODING_IDE_HOME:** path to store WebIDE application's data
* **CODING_IDE_HOME:** path to store WebIDE application's data, default to `~/.coding-ide`

If changed, restart the application to let your configurations take effect. Note that changes on `USERNAME`, `EMAIL` *WILL NOT* apply to workspaces that are already created.


## Docker Server

```
docker run -p 8080:8080 -h webide --name webide webide/webide
docker run -p 8080:8080 -v coding-ide-home:/root/.coding-ide webide/webide
```

To learn more about docker commands,please refer to wiki [English](https://github.com/Coding/WebIDE/wiki/Docker-Server.en) [中文](https://github.com/Coding/WebIDE/wiki/Docker-Server.zh)

0 comments on commit 550768b

Please sign in to comment.