mirror of
https://github.com/DerDavidBohl/dirigent-spring.git
synced 2025-12-21 11:59:56 -06:00
Refactor deployment handling and improve error logging for Git operations
This commit is contained in:
@@ -30,6 +30,7 @@ public class DirigentApplication {
|
||||
Runtime.getRuntime().exec((composeCommand + " --version").split(" "));
|
||||
return true;
|
||||
} catch (Exception e) {
|
||||
logger.error("Compose is not installed. Please install it and try again.", e);
|
||||
// Handle exception if needed
|
||||
}
|
||||
return false;
|
||||
|
||||
@@ -116,7 +116,7 @@ public class DeploymentsService {
|
||||
)
|
||||
.collect(Collectors.toList());
|
||||
|
||||
deployListOfDeployments(deployments, true);
|
||||
deployListOfDeployments(deployments, false);
|
||||
}
|
||||
|
||||
@EventListener(NamedDeploymentStopRequestedEvent.class)
|
||||
|
||||
@@ -23,7 +23,7 @@ public class GitService {
|
||||
|
||||
public boolean updateRepo(String repoUrl, String targetDir, String rev) throws IOException, InterruptedException {
|
||||
|
||||
logger.info("Cloning or pulling git repository '{}' to dir '{}'", repoUrl, targetDir);
|
||||
logger.info("Cloning or pulling git repository '{}' to dir '{}' @ rev '{}'", repoUrl, targetDir, rev);
|
||||
|
||||
File destinationDir = new File(targetDir);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user