Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
setup-manager
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵啸非
setup-manager
Commits
529c3c3e
Commit
529c3c3e
authored
Nov 19, 2024
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加php健康度检测
parent
1fcb0f7d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
6 deletions
+7
-6
setup-project-manager/src/main/java/com/mortals/xhx/daemon/task/CheckProjectStatusTaskImpl.java
...m/mortals/xhx/daemon/task/CheckProjectStatusTaskImpl.java
+6
-5
setup-project-manager/src/main/java/com/mortals/xhx/module/setup/service/impl/SetupProjectServiceImpl.java
...hx/module/setup/service/impl/SetupProjectServiceImpl.java
+1
-1
No files found.
setup-project-manager/src/main/java/com/mortals/xhx/daemon/task/CheckProjectStatusTaskImpl.java
View file @
529c3c3e
...
...
@@ -49,9 +49,9 @@ public class CheckProjectStatusTaskImpl implements ITaskExcuteService {
if
(
ProjectTypeEnum
.
后端
.
getValue
()
==
setupProjectEntity
.
getProjectType
())
{
//todo http://192.168.0.250:8848/nacos/v1/ns/catalog/instances?message=true&serviceName=bill-manager&clusterName=DEFAULT&groupName=DEFAULT_GROUP&pageSize=10&pageNo=1&namespaceId=smart-gov
String
serverUrl
=
nacosUrl
+
"/nacos/v1/ns/catalog/instances?message=true&serviceName="
+
setupProjectEntity
.
getProjectCode
()
+
"&clusterName=DEFAULT&groupName=DEFAULT_GROUP&pageSize=10&pageNo=1&namespaceId=smart-gov"
;
String
resp
=
HttpUtil
.
get
(
serverUrl
);
String
resp
=
""
;
try
{
resp
=
HttpUtil
.
get
(
serverUrl
);
NacosResponse
nacosResponse
=
JSON
.
parseObject
(
resp
,
new
TypeReference
<
NacosResponse
>()
{
});
int
count
=
nacosResponse
.
getCount
();
...
...
@@ -97,9 +97,9 @@ public class CheckProjectStatusTaskImpl implements ITaskExcuteService {
//todo 前端 判断路径文件是否存在 如果存在 则代表运行
if
(
ProductDisEnum
.
排号系统PHP后端
.
getValue
().
equals
(
setupProjectEntity
.
getProjectCode
()))
{
String
serverUrl
=
"http://127.0.0.1:11078/zwfw_api/api/upload/dictionary"
;
String
resp
=
HttpUtil
.
get
(
serverUrl
);
String
resp
=
""
;
try
{
resp
=
HttpUtil
.
get
(
serverUrl
);
JSON
.
parseObject
(
resp
);
setupProjectEntity
.
setProjectStatus
(
ProjectStatusEnum
.
运行中
.
getValue
());
setupProjectEntity
.
setUpdateTime
(
new
Date
());
...
...
@@ -116,8 +116,9 @@ public class CheckProjectStatusTaskImpl implements ITaskExcuteService {
if
(
ProductDisEnum
.
窗口服务行为监察PHP后端
.
getValue
().
equals
(
setupProjectEntity
.
getProjectCode
()))
{
String
serverUrl
=
"http://127.0.0.1:11030/admin/waited/verify"
;
String
resp
=
HttpUtil
.
get
(
serverUrl
)
;
String
resp
=
""
;
try
{
resp
=
HttpUtil
.
get
(
serverUrl
);
JSON
.
parseObject
(
resp
);
setupProjectEntity
.
setProjectStatus
(
ProjectStatusEnum
.
运行中
.
getValue
());
setupProjectEntity
.
setUpdateTime
(
new
Date
());
...
...
setup-project-manager/src/main/java/com/mortals/xhx/module/setup/service/impl/SetupProjectServiceImpl.java
View file @
529c3c3e
...
...
@@ -440,7 +440,7 @@ public class SetupProjectServiceImpl extends AbstractCRUDServiceImpl<SetupProjec
log
.
info
(
"originalFilename:{}"
,
originalFilename
);
//解压目录,为当前工程目录 /home/publish/setup-manager/project/
String
projectPath
=
this
.
publishPath
+
"/temp/
project/
"
;
String
projectPath
=
this
.
publishPath
+
"/temp/"
;
boolean
exist
=
FileUtil
.
exist
(
projectPath
);
if
(!
exist
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment