Commit 5a78aa57 authored by 赵啸非's avatar 赵啸非

添加产品资源枚举类

parent ef7e6fee
...@@ -31,10 +31,7 @@ import org.springframework.util.ObjectUtils; ...@@ -31,10 +31,7 @@ import org.springframework.util.ObjectUtils;
import org.springframework.web.multipart.MultipartFile; import org.springframework.web.multipart.MultipartFile;
import javax.sql.DataSource; import javax.sql.DataSource;
import java.io.BufferedReader; import java.io.*;
import java.io.File;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.nio.charset.Charset; import java.nio.charset.Charset;
import java.sql.Connection; import java.sql.Connection;
import java.sql.PreparedStatement; import java.sql.PreparedStatement;
...@@ -221,7 +218,11 @@ public class SetupProjectServiceImpl extends AbstractCRUDServiceImpl<SetupProjec ...@@ -221,7 +218,11 @@ public class SetupProjectServiceImpl extends AbstractCRUDServiceImpl<SetupProjec
if (SystemUtil.getOsInfo().isLinux()) { if (SystemUtil.getOsInfo().isLinux()) {
//todo 执行部署脚本 //todo 执行部署脚本
//后端服务,创建service 启动服务 //后端服务,创建service 启动服务
callScript("chmod -R 755 "+destDir, "4"); try {
Runtime.getRuntime().exec("chmod -R 755 "+destDir);
} catch (IOException e) {
log.error(e.getMessage());
}
callScript("project_deploy.sh", "4", publicPath); callScript("project_deploy.sh", "4", publicPath);
} else if (SystemUtil.getOsInfo().isWindows()) { } else if (SystemUtil.getOsInfo().isWindows()) {
//todo //todo
......
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