feat: multi deployments
This commit is contained in:
@@ -19,8 +19,8 @@ class StopApplication
|
||||
|
||||
$servers = collect([]);
|
||||
$servers->push($application->destination->server);
|
||||
$application->additional_networks->map(function ($network) use ($servers) {
|
||||
$servers->push($network->server);
|
||||
$application->additional_servers->map(function ($server) use ($servers) {
|
||||
$servers->push($server);
|
||||
});
|
||||
foreach ($servers as $server) {
|
||||
if (!$server->isFunctional()) {
|
||||
@@ -37,18 +37,7 @@ class StopApplication
|
||||
);
|
||||
}
|
||||
}
|
||||
// $application->environment->project->team->notify(new StatusChanged($application));
|
||||
}
|
||||
}
|
||||
|
||||
// // Delete Preview Deployments
|
||||
// $previewDeployments = $application->previews;
|
||||
// foreach ($previewDeployments as $previewDeployment) {
|
||||
// $containers = getCurrentApplicationContainerStatus($server, $application->id, $previewDeployment->pull_request_id);
|
||||
// foreach ($containers as $container) {
|
||||
// $name = str_replace('/', '', $container['Names']);
|
||||
// instant_remote_process(["docker rm -f $name"], $application->destination->server, throwError: false);
|
||||
// }
|
||||
// }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user