This commit is contained in:
Van 2014-11-01 21:28:26 +08:00
commit b28791eb31
2 changed files with 10 additions and 6 deletions

View File

@ -9,10 +9,10 @@ A <b>W</b>eb-based <b>IDE</b> for Teams using Golang.
## Motivation ## Motivation
* **Team** IDE: * **Team** IDE:
* Safe and reliable: the project source code stored on the server in real time, the developer's machine crashes without losing any source code * _Safe and reliable_: the project source code stored on the server in real time, the developer's machine crashes without losing any source code
* Unified environment: server unified development environment configuration, the developer machine without any additional configuration * _Unified environment_: server unified development environment configuration, the developer machine without any additional configuration
* Out of the box: 5 minutes to setup a server then open browser to develop, debug * _Out of the box_: 5 minutes to setup a server then open browser to develop, debug
* Version Control: each developer has its own source code repository, easy sync with the trunk * _Version Control_: each developer has its own source code repository, easy sync with the trunk
* **Web-based** IDE: * **Web-based** IDE:
* Developer needs a browser only * Developer needs a browser only
* Cross-platform, even on mobile devices * Cross-platform, even on mobile devices

View File

@ -299,7 +299,7 @@ func initCustomizedConfs() {
// 1. /static/user/{username}/style.css // 1. /static/user/{username}/style.css
func UpdateCustomizedConf(username string) { func UpdateCustomizedConf(username string) {
var u *User = nil var u *User = nil
for _, user := range Wide.Users { // ... maybe a beauty of the trade-off between design and implementation for _, user := range Wide.Users { // maybe it is a beauty of the trade-off of the another world between design and implementation
if user.Name == username { if user.Name == username {
u = user u = user
} }
@ -338,7 +338,11 @@ func UpdateCustomizedConf(username string) {
defer fout.Close() defer fout.Close()
t.Execute(fout, model) if err := t.Execute(fout, model); nil != err {
glog.Error(err)
os.Exit(-1)
}
} }
// initWorkspaceDirs initializes the directories of master workspace, users' workspaces. // initWorkspaceDirs initializes the directories of master workspace, users' workspaces.