Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
凌波微步_大先生
dashboard
提交
6db8399c
D
dashboard
项目概览
凌波微步_大先生
/
dashboard
与 Fork 源项目一致
从无法访问的项目Fork
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
dashboard
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
6db8399c
编写于
11月 27, 2015
作者:
P
Piotr Bryk
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #102 from bryk/enable-serve-prod
Fix issue where devs couldn't run serve:prod
上级
75d0cf2a
37c92997
变更
3
显示空白变更内容
内联
并排
Showing
3 changed file
with
12 addition
and
22 deletion
+12
-22
build/cluster.js
build/cluster.js
+1
-1
build/serve.js
build/serve.js
+11
-13
src/app/backend/dashboard.go
src/app/backend/dashboard.go
+0
-8
未找到文件。
build/cluster.js
浏览文件 @
6db8399c
...
...
@@ -88,7 +88,7 @@ function executeKubectlCommand(command, doneFn) {
* * Install golang
* * Install etcd
*/
gulp
.
task
(
'
local-up-cluster
'
,
[
'
spawn-cluster
'
]);
gulp
.
task
(
'
local-up-cluster
'
,
[
'
spawn-cluster
'
,
'
wait-for-cluster
'
]);
/**
* Tears down a Kubernetes cluster.
...
...
build/serve.js
浏览文件 @
6db8399c
...
...
@@ -127,9 +127,7 @@ gulp.task('spawn-backend', ['backend', 'kill-backend'], function() {
* backend process is killed beforehand, if any. In production the backend does serve the frontend
* pages as well.
*/
gulp
.
task
(
'
spawn-backend:prod
'
,
[
'
build-frontend
'
,
'
backend:prod
'
,
'
kill-backend
'
,
'
wait-for-cluster
'
],
function
()
{
gulp
.
task
(
'
spawn-backend:prod
'
,
[
'
build-frontend
'
,
'
backend:prod
'
,
'
kill-backend
'
],
function
()
{
runningBackendProcess
=
child
.
spawn
(
path
.
join
(
conf
.
paths
.
dist
,
conf
.
backend
.
binaryName
),
[
`--apiserver-host=
${
conf
.
backend
.
apiServerHost
}
`
,
`--port=
${
conf
.
frontend
.
serverPort
}
`
],
...
...
@@ -139,7 +137,7 @@ gulp.task(
// Mark that there is no backend process running anymore.
runningBackendProcess
=
null
;
});
});
});
/**
* Kills running backend process (if any).
...
...
src/app/backend/dashboard.go
浏览文件 @
6db8399c
...
...
@@ -43,14 +43,6 @@ func main() {
glog
.
Fatal
(
err
)
}
serverAPIVersion
,
err
:=
apiserverClient
.
ServerAPIVersions
()
if
err
!=
nil
{
glog
.
Fatal
(
err
)
}
// Display Apiserver version. This is just for tests.
println
(
"Server API version: "
+
serverAPIVersion
.
GoString
())
// Run a HTTP server that serves static public files from './public' and handles API calls.
// TODO(bryk): Disable directory listing.
http
.
Handle
(
"/"
,
http
.
FileServer
(
http
.
Dir
(
"./public"
)))
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录