Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Eolink
goku-api-gateway
提交
57b77549
G
goku-api-gateway
项目概览
Eolink
/
goku-api-gateway
上一次同步 1 年多
通知
133
Star
2992
Fork
611
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
G
goku-api-gateway
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
57b77549
编写于
1月 18, 2020
作者:
Y
Your Name
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Revert "修改编译脚本"
This reverts commit
f63a55b4
.
上级
dbd18ad4
变更
4
显示空白变更内容
内联
并排
Showing
4 changed file
with
253 addition
and
254 deletion
+253
-254
build/cmd/build-console.sh
build/cmd/build-console.sh
+1
-1
build/console/.gitignore
build/console/.gitignore
+0
-1
build/console/resources/sql/goku_ce.sql
build/console/resources/sql/goku_ce.sql
+236
-237
build/node/resources/run.sh
build/node/resources/run.sh
+16
-15
未找到文件。
build/cmd/build-console.sh
浏览文件 @
57b77549
...
@@ -12,7 +12,7 @@ OUTPATH="${BasePath}/out/console-${VERSION}"
...
@@ -12,7 +12,7 @@ OUTPATH="${BasePath}/out/console-${VERSION}"
buildApp console
$VERSION
buildApp console
$VERSION
mkdir
${
OUTPATH
}
/static
mkdir
${
OUTPATH
}
/static
cp
-a
${
BasePath
}
/app/console/static/
*
${
OUTPATH
}
/static/
cp
-a
${
BasePath
}
/build/console/resources/
*
${
OUTPATH
}
/
cp
-a
${
BasePath
}
/build/console/resources/
*
${
OUTPATH
}
/
chmod
+x
${
OUTPATH
}
/install.sh
${
OUTPATH
}
/run.sh
chmod
+x
${
OUTPATH
}
/install.sh
${
OUTPATH
}
/run.sh
...
...
build/console/.gitignore
已删除
100644 → 0
浏览文件 @
dbd18ad4
/static/
build/console/resources/sql/goku_ce.sql
浏览文件 @
57b77549
...
@@ -166,7 +166,6 @@ CREATE TABLE "goku_gateway_api" (
...
@@ -166,7 +166,6 @@ CREATE TABLE "goku_gateway_api" (
"projectID"
integer
(
11
)
NOT
NULL
,
"projectID"
integer
(
11
)
NOT
NULL
,
"requestURL"
text
(
255
)
NOT
NULL
,
"requestURL"
text
(
255
)
NOT
NULL
,
"apiName"
text
(
255
)
NOT
NULL
,
"apiName"
text
(
255
)
NOT
NULL
,
"alias"
text
(
255
),
"requestMethod"
text
(
255
)
NOT
NULL
,
"requestMethod"
text
(
255
)
NOT
NULL
,
"targetServer"
text
(
255
),
"targetServer"
text
(
255
),
"targetURL"
text
(
255
),
"targetURL"
text
(
255
),
...
@@ -428,17 +427,17 @@ UPDATE "sqlite_sequence" SET seq = 1 WHERE name = 'goku_admin';
...
@@ -428,17 +427,17 @@ UPDATE "sqlite_sequence" SET seq = 1 WHERE name = 'goku_admin';
-- Indexes structure for table goku_balance
-- Indexes structure for table goku_balance
-- ----------------------------
-- ----------------------------
CREATE
INDEX
"balanceName"
CREATE
INDEX
"balanceName"
ON
"goku_balance"
(
ON
"goku_balance"
(
"balanceName"
ASC
"balanceName"
ASC
);
);
-- ----------------------------
-- ----------------------------
-- Indexes structure for table goku_cluster
-- Indexes structure for table goku_cluster
-- ----------------------------
-- ----------------------------
CREATE
INDEX
"name"
CREATE
INDEX
"name"
ON
"goku_cluster"
(
ON
"goku_cluster"
(
"name"
ASC
"name"
ASC
);
);
-- ----------------------------
-- ----------------------------
-- Auto increment value for goku_config_log
-- Auto increment value for goku_config_log
...
...
build/node/resources/run.sh
浏览文件 @
57b77549
...
@@ -26,21 +26,16 @@ start() {
...
@@ -26,21 +26,16 @@ start() {
ADMIN
=
$1
ADMIN
=
$1
INSTANCE
=
$2
INSTANCE
=
$2
CONFIG_PATH
=
$WORK_PATH
/goku-node.json
RUN_MODEL
=
"console"
if
[[
"INSTANCE"
=
""
]]
;
then
if
[
-f
"
$CONFIG_PATH
"
]
;
then
PORT
=
${
ENV_INSTANCE
}
RUN_MODEL
=
"config"
fi
fi
if
[[
"
$ADMIN
"
=
""
]]
;
then
if
[[
"
$ADMIN
"
=
""
]]
;
then
ADMIN
=
${
ENV_ADMIN
}
ADMIN
=
${
ENV_ADMIN
}
fi
fi
if
[[
"
$INSTANCE
"
=
""
]]
;
then
if
[[
"
$ADMIN
"
=
""
]]
;
then
INSTANCE
=
${
ENV_INSTANCE
}
fi
if
[[
"
$ADMIN
"
==
""
&&
"
$RUN_MODEL
"
==
"console"
]]
;
then
echo
"start fail :need admin url"
echo
"start fail :need admin url"
exit
1
exit
1
fi
fi
...
@@ -48,10 +43,17 @@ start() {
...
@@ -48,10 +43,17 @@ start() {
mkdir
-p
$WORK_PATH
/logs
mkdir
-p
$WORK_PATH
/logs
echo
-e
"ENV_PORT=
$PORT
\n
ENV_ADMIN=
$ADMIN
"
>
$WORK_PATH
/
$PROG
.env
echo
-e
"ENV_PORT=
$PORT
\n
ENV_ADMIN=
$ADMIN
"
>
$WORK_PATH
/
$PROG
.env
if
[[
"
$ADMIN
"
!=
"NULL"
]]
;
then
if
[[
-e
"
$WORK_PATH
/
$PROG
.pid"
]]
;
then
$PROG_PATH
/
$PROG
--admin
=
$ADMIN
--instance
=
$INSTANCE
## Program is running, exit with error.
echo
"Error!
$PROG
is currently running!"
1>&2
exit
1
else
else
$PROG_PATH
/
$PROG
--config
=
$CONFIG_PATH
time
=
$(
date
"+%Y%m%d-%H%M%S"
)
## Change from /dev/null to something like /var/log/$PROG if you want to save output.
nohup
$PROG_PATH
/
$PROG
--instance
=
$INSTANCE
--admin
=
$ADMIN
2>&1
>
"
$WORK_PATH
/logs/stdout-
$PROG
-
$time
.log"
&
pid
=
$!
echo
"
$PROG
started"
echo
$pid
>
"
$WORK_PATH
/
$PROG
.pid"
fi
fi
}
}
...
@@ -102,4 +104,3 @@ case "$1" in
...
@@ -102,4 +104,3 @@ case "$1" in
exit
1
exit
1
;;
;;
esac
esac
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录