Commit c6ecae4a authored by 赵啸非's avatar 赵啸非

添加php健康度检测

parent 511d8a1d
...@@ -134,6 +134,11 @@ public class SetupProjectServiceImpl extends AbstractCRUDServiceImpl<SetupProjec ...@@ -134,6 +134,11 @@ public class SetupProjectServiceImpl extends AbstractCRUDServiceImpl<SetupProjec
//判断当前系统类型,执行不同shell 或者 bat脚本 //判断当前系统类型,执行不同shell 或者 bat脚本
if (SystemUtil.getOsInfo().isLinux()) { if (SystemUtil.getOsInfo().isLinux()) {
//todo 执行部署脚本 //todo 执行部署脚本
try {
Runtime.getRuntime().exec("chmod -R 777 " + destDir);
} catch (IOException e) {
log.error(e.getMessage());
}
//后端服务,创建service 启动服务 //后端服务,创建service 启动服务
callScript("project_deploy.sh", "4", publicPath + "/bin/"); callScript("project_deploy.sh", "4", publicPath + "/bin/");
} else if (SystemUtil.getOsInfo().isWindows()) { } else if (SystemUtil.getOsInfo().isWindows()) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment