|
@@ -59,13 +59,13 @@ public class AppLifecycle implements ApplicationRunner, DisposableBean {
|
|
|
public void run(ApplicationArguments args) throws IOException {
|
|
public void run(ApplicationArguments args) throws IOException {
|
|
|
initSys();
|
|
initSys();
|
|
|
buildStat.resetState();
|
|
buildStat.resetState();
|
|
|
- log.info("bnt-web started");
|
|
|
|
|
|
|
+ log.info("devops-web started");
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
@Override
|
|
|
public void destroy() {
|
|
public void destroy() {
|
|
|
machineService.shutdown();
|
|
machineService.shutdown();
|
|
|
- log.info("bnt-web shutdown...");
|
|
|
|
|
|
|
+ log.info("devops-web shutdown...");
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
private void initSys() throws IOException {
|
|
private void initSys() throws IOException {
|
|
@@ -82,20 +82,20 @@ public class AppLifecycle implements ApplicationRunner, DisposableBean {
|
|
|
String baseDir = appProperties.getBaseDir();
|
|
String baseDir = appProperties.getBaseDir();
|
|
|
File dir = new File(baseDir);
|
|
File dir = new File(baseDir);
|
|
|
if (!dir.exists() && !dir.mkdirs()) {
|
|
if (!dir.exists() && !dir.mkdirs()) {
|
|
|
- log.error("创建本地构建目录 {} 失败,bnt-web 结束运行", baseDir);
|
|
|
|
|
|
|
+ log.error("创建本地构建目录 {} 失败,devops-web 结束运行", baseDir);
|
|
|
System.exit(1);
|
|
System.exit(1);
|
|
|
} else {
|
|
} else {
|
|
|
try {
|
|
try {
|
|
|
buildDirService.init(baseDir);
|
|
buildDirService.init(baseDir);
|
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|
|
|
- log.error("初始化本地构建目录失败: {},bnt-web 结束运行", e.getMessage());
|
|
|
|
|
|
|
+ log.error("初始化本地构建目录失败: {},devops-web 结束运行", e.getMessage());
|
|
|
System.exit(1);
|
|
System.exit(1);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
private void initLogConfig() {
|
|
private void initLogConfig() {
|
|
|
- String app = "bnt-web";
|
|
|
|
|
|
|
+ String app = "devops-web";
|
|
|
String host = "localhost";
|
|
String host = "localhost";
|
|
|
LoggerConfig.initLogger(List.of(
|
|
LoggerConfig.initLogger(List.of(
|
|
|
Appenders.pushAppender(app, host, logHandler),
|
|
Appenders.pushAppender(app, host, logHandler),
|