Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
ghsby
o2oa
提交
8b90e3d6
o2oa
项目概览
ghsby
/
o2oa
落后 Fork 源项目 2880 个版本
Fork自
浙江兰德纵横网络技术股份有限公司 / o2oa
通知
1
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
o2oa
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
8b90e3d6
编写于
8月 27, 2020
作者:
hlwwx
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
'修改了上传war,启动判断'
上级
4a3d1ab2
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
16 addition
and
8 deletion
+16
-8
o2server/configSample/manifest.cfg
o2server/configSample/manifest.cfg
+6
-8
o2server/x_console/src/main/java/com/x/server/console/NodeAgent.java
...console/src/main/java/com/x/server/console/NodeAgent.java
+10
-0
未找到文件。
o2server/configSample/manifest.cfg
浏览文件 @
8b90e3d6
{"node_127.0.0.1.json":"节点配置",
"appStyle.json":"应用样式配置",
"appStyle.json":"
移动端
应用样式配置",
"centerServer.json":"中心服务配置",
"clientInit.json":"客户端初始化配置",
"collect.json":"连接到云平台配置",
...
...
@@ -7,8 +7,7 @@
"components.json":"组件配置",
"dingding.json":"钉钉配置",
"dumpRestoreData.json":"导出导入数据配置",
"dumpRestoreStorage.json":"导出导入文件配置",
"exmail.json":"邮件配置",
"exmail.json":"腾讯企业邮邮件配置",
"externalDataSources.json":"数据库配置",
"externalDataSources_db2.json":"db2数据库配置",
"externalDataSources_dm.json":"达梦数据库配置",
...
...
@@ -28,11 +27,10 @@
"person.json":"个人信息配置",
"portal.json":"门户配置",
"processPlatform.json":"流程平台配置",
"pushConfig.json":"极光推送配置",
"qiyeweixin.json":"微信配置",
"query.json":"定时任务配置",
"token.json":"sso配置",
"vfs.json":"附件上传配置",
"qiyeweixin.json":"企业微信配置",
"query.json":"数据中心配置",
"token.json":"令牌,密钥配置",
"vfs.json":"虚拟文件存储配置",
"welink.json":"华为WeLink配置",
"workTime.json":"工作时间配置",
"zhengwuDingding.json":"政务钉钉配置"
...
...
o2server/x_console/src/main/java/com/x/server/console/NodeAgent.java
浏览文件 @
8b90e3d6
...
...
@@ -493,6 +493,7 @@ public class NodeAgent extends Thread {
File
war
=
new
File
(
Config
.
dir_custom
(
true
),
simpleName
+
".war"
);
File
dir
=
new
File
(
Config
.
dir_servers_applicationServer_work
(),
simpleName
);
FileUtils
.
writeByteArrayToFile
(
war
,
bytes
,
false
);
boolean
isStartApplication
=
false
;
//第一次上传
if
(
Servers
.
applicationServerIsRunning
())
{
GzipHandler
gzipHandler
=
(
GzipHandler
)
Servers
.
applicationServer
.
getHandler
();
HandlerList
hanlderList
=
(
HandlerList
)
gzipHandler
.
getHandler
();
...
...
@@ -501,16 +502,20 @@ public class NodeAgent extends Thread {
QuickStartWebApp
app
=
(
QuickStartWebApp
)
handler
;
if
(
StringUtils
.
equals
(
"/"
+
simpleName
,
app
.
getContextPath
()))
{
app
.
stop
();
logger
.
print
(
"{} need restart because {} redeployed."
,
app
.
getDisplayName
(),
simpleName
);
this
.
modified
(
bytes
,
war
,
dir
);
app
.
start
();
isStartApplication
=
true
;
}
}
}
if
(
rebootApp
)
{
if
(!
isStartApplication
)
{
Servers
.
stopApplicationServer
();
Thread
.
sleep
(
3000
);
Servers
.
startApplicationServer
();
}
}
}
}
...
...
@@ -519,6 +524,7 @@ public class NodeAgent extends Thread {
File
jar
=
new
File
(
Config
.
dir_custom_jars
(
true
),
simpleName
+
".jar"
);
FileUtils
.
writeByteArrayToFile
(
jar
,
bytes
,
false
);
List
<
String
>
contexts
=
new
ArrayList
<>();
boolean
isStartApplication
=
false
;
for
(
String
s
:
Config
.
dir_custom
().
list
(
new
WildcardFileFilter
(
"*.war"
)))
{
contexts
.
add
(
"/"
+
FilenameUtils
.
getBaseName
(
s
));
}
...
...
@@ -530,16 +536,20 @@ public class NodeAgent extends Thread {
QuickStartWebApp
app
=
(
QuickStartWebApp
)
handler
;
if
(
contexts
.
contains
(
app
.
getContextPath
())
)
{
app
.
stop
();
logger
.
print
(
"{} need restart because {} redeployed."
,
app
.
getDisplayName
(),
simpleName
);
Thread
.
sleep
(
3000
);
app
.
start
();
isStartApplication
=
true
;
}
}
}
if
(
rebootApp
)
{
if
(!
isStartApplication
)
{
Servers
.
stopApplicationServer
();
Thread
.
sleep
(
1000
);
Servers
.
startApplicationServer
();
}
}
}
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录