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
a8f3e905
Commit
a8f3e905
authored
Nov 28, 2024
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加php健康度检测
parent
6ef973a1
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
24 additions
and
15 deletions
+24
-15
setup-project-manager/src/main/java/com/mortals/xhx/module/setup/service/impl/SetupDbServiceImpl.java
...als/xhx/module/setup/service/impl/SetupDbServiceImpl.java
+0
-2
setup-project-manager/src/main/java/com/mortals/xhx/module/setup/service/impl/SetupProjectServiceImpl.java
...hx/module/setup/service/impl/SetupProjectServiceImpl.java
+1
-1
setup-project-manager/src/main/java/com/mortals/xhx/module/setup/web/SetupProjectController.java
.../mortals/xhx/module/setup/web/SetupProjectController.java
+10
-1
setup-project-manager/src/main/resources/bootstrap.yml
setup-project-manager/src/main/resources/bootstrap.yml
+3
-0
setup.sh
setup.sh
+10
-11
No files found.
setup-project-manager/src/main/java/com/mortals/xhx/module/setup/service/impl/SetupDbServiceImpl.java
View file @
a8f3e905
...
@@ -59,8 +59,6 @@ public class SetupDbServiceImpl implements SetupDbService {
...
@@ -59,8 +59,6 @@ public class SetupDbServiceImpl implements SetupDbService {
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
log
.
error
(
"初始化数据库异常"
,
e
);
log
.
error
(
"初始化数据库异常"
,
e
);
}
finally
{
}
}
return
Rest
.
ok
(
"初始化数据成功!"
);
return
Rest
.
ok
(
"初始化数据成功!"
);
}
}
...
...
setup-project-manager/src/main/java/com/mortals/xhx/module/setup/service/impl/SetupProjectServiceImpl.java
View file @
a8f3e905
...
@@ -237,7 +237,7 @@ public class SetupProjectServiceImpl extends AbstractCRUDServiceImpl<SetupProjec
...
@@ -237,7 +237,7 @@ public class SetupProjectServiceImpl extends AbstractCRUDServiceImpl<SetupProjec
}
catch
(
IOException
e
)
{
}
catch
(
IOException
e
)
{
log
.
error
(
e
.
getMessage
());
log
.
error
(
e
.
getMessage
());
}
}
callScript
(
"project_deploy.sh"
,
"4"
,
sourcePath
);
callScript
(
"project_deploy.sh"
,
"4"
,
destDir
.
getPath
()
);
}
else
if
(
SystemUtil
.
getOsInfo
().
isWindows
())
{
}
else
if
(
SystemUtil
.
getOsInfo
().
isWindows
())
{
//todo
//todo
}
}
...
...
setup-project-manager/src/main/java/com/mortals/xhx/module/setup/web/SetupProjectController.java
View file @
a8f3e905
...
@@ -238,9 +238,18 @@ public class SetupProjectController extends BaseCRUDJsonBodyMappingController<Se
...
@@ -238,9 +238,18 @@ public class SetupProjectController extends BaseCRUDJsonBodyMappingController<Se
SetupProjectEntity
setupProject
=
this
.
service
.
get
(
siteEntity
.
getId
());
SetupProjectEntity
setupProject
=
this
.
service
.
get
(
siteEntity
.
getId
());
if
(
ObjectUtils
.
isEmpty
(
setupProject
))
throw
new
AppException
(
"未找到项目信息"
);
if
(
ObjectUtils
.
isEmpty
(
setupProject
))
throw
new
AppException
(
"未找到项目信息"
);
if
(
ObjectUtils
.
isEmpty
(
setupProject
.
getSiteId
()))
throw
new
AppException
(
"请同步更新站点信息!"
);
if
(
ObjectUtils
.
isEmpty
(
setupProject
.
getSiteId
()))
throw
new
AppException
(
"请同步更新站点信息!"
);
//基础服务必须运行中
SetupProjectQuery
query
=
new
SetupProjectQuery
();
query
.
setProjectCodeList
(
Arrays
.
asList
(
基础服务后端
.
getValue
(),
网关服务
.
getValue
()));
List
<
SetupProjectEntity
>
setupProjectEntities
=
this
.
service
.
find
(
query
);
for
(
SetupProjectEntity
setupProjectEntity
:
setupProjectEntities
)
{
if
(
ProjectStatusEnum
.
运行中
.
getValue
()
!=
setupProjectEntity
.
getProjectStatus
())
{
throw
new
AppException
(
String
.
format
(
"%s服务状态未运行,请等待服务运行后再进行事项数据同步!"
,
setupProjectEntity
.
getName
()));
}
}
try
{
try
{
HashMap
<
String
,
Object
>
params
=
new
HashMap
<>();
HashMap
<
String
,
Object
>
params
=
new
HashMap
<>();
params
.
put
(
"id"
,
setupProject
.
getSiteId
());
params
.
put
(
"id"
,
setupProject
.
getSiteId
());
...
...
setup-project-manager/src/main/resources/bootstrap.yml
View file @
a8f3e905
...
@@ -11,6 +11,9 @@ spring:
...
@@ -11,6 +11,9 @@ spring:
multipart
:
multipart
:
max-file-size
:
2048MB
max-file-size
:
2048MB
max-request-size
:
2048MB
max-request-size
:
2048MB
dao
:
exceptiontranslation
:
enabled
:
false
# redis:
# redis:
# host: @profiles.redis.uri@
# host: @profiles.redis.uri@
# port: @profiles.redis.port@
# port: @profiles.redis.port@
...
...
setup.sh
View file @
a8f3e905
...
@@ -476,6 +476,10 @@ init_deploy() {
...
@@ -476,6 +476,10 @@ init_deploy() {
if
[
!
-d
"/mortals/app/data"
]
;
then
if
[
!
-d
"/mortals/app/data"
]
;
then
mkdir
-p
/mortals/app/data
mkdir
-p
/mortals/app/data
writelog
"解压资源文件..."
tar
-xvf
$BASEDIR
/release/resource/mortals.tar.gz
-C
/
writelog
"解压资源文件完成"
chmod
-R
755 /mortals
chmod
-R
755 /mortals
fi
fi
...
@@ -484,17 +488,12 @@ init_deploy() {
...
@@ -484,17 +488,12 @@ init_deploy() {
chmod
-R
755 /mortals
chmod
-R
755 /mortals
fi
fi
if
[
!
-d
"/home/logs/"
]
;
then
if
[
!
-d
"/home/logs/"
]
;
then
mkdir
-p
/home/logs/
mkdir
-p
/home/logs/
chmod
-R
755 /home/logs/
chmod
-R
755 /home/logs/
fi
fi
writelog
"创建文件目录完成"
writelog
"创建文件目录完成"
writelog
"解压资源文件..."
tar
-xvf
$BASEDIR
/release/resource/mortals.tar.gz
-C
/
chmod
-R
755 /mortals
writelog
"解压资源文件完成"
}
}
...
...
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