Browse Source

fix build script

pull/3/head v0.1
miraclesu 8 years ago
parent
commit
6add6a7823
  1. 2
      README.md
  2. 6
      build.sh
  3. 2
      conf/files/db.json.sample
  4. 4
      conf/files/etcd.json.sample
  5. 2
      conf/files/mail.json.sample
  6. 2
      conf/files/security.json.sample
  7. 6
      conf/files/web.json.sample

2
README.md

@ -61,7 +61,7 @@ sh ./build.sh
1. 安装 [MongoDB](http://docs.mongodb.org/manual/installation/)
2. 安装 [etcd](https://github.com/coreos/etcd)
3. 修改 `conf` 相关的配置
4. 在任务结点启动 `./node -conf conf/base.json`,在管理结点启动 `./web -conf conf/base.json`
4. 在任务结点启动 `./cronnode -conf conf/base.json`,在管理结点启动 `./cronweb -conf conf/base.json`
5. 访问管理界面 `http://127.0.0.1:7079/ui/`
## Screenshot

6
build.sh

@ -13,11 +13,13 @@ echo "build file to ./$out"
mkdir -p "$out/conf"
go build -o ./$out/node ./bin/node/server.go
go build -o ./$out/cronnode ./bin/node/server.go
check_code
go build -o ./$out/web ./bin/web/server.go
go build -o ./$out/cronweb ./bin/web/server.go
check_code
cp -r web/ui/dist "$out/ui"
sources=`find ./conf/files -name "*.json.sample"`
check_code
for source in $sources;do

2
conf/files/db.json.sample

@ -5,4 +5,4 @@
"Database": "cronsun",
"#Timeout": "connect timeout duration/second",
"Timeout": 15
}
}

4
conf/files/etcd.json.sample

@ -1,8 +1,6 @@
{
"Endpoints":[
"http://192.168.11.27:2389",
"http://192.168.11.28:2389",
"http://192.168.11.29:2389"
"http://127.0.0.1:2389"
],
"Username":"",
"Password":"",

2
conf/files/mail.json.sample

@ -11,4 +11,4 @@
"Password": "nbhh",
"SSL": false,
"LocalName": "sendmail@nb.com"
}
}

2
conf/files/security.json.sample

@ -6,4 +6,4 @@
"ext": [
".sh", ".py"
]
}
}

6
conf/files/web.json.sample

@ -1,5 +1,5 @@
{
"BindAddr": ":7079",
"#UIDir": "为空使用默认的后台界面"
"UIDir": ""
}
"#UIDir": "为空使用默认的后台界面",
"UIDir": "ui"
}

Loading…
Cancel
Save