fix: tag deployments
This commit is contained in:
parent
1fb8d1e14c
commit
23a1b1925f
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
namespace App\Livewire\Tags;
|
namespace App\Livewire\Tags;
|
||||||
|
|
||||||
use App\Http\Controllers\Api\Deploy;
|
use App\Http\Controllers\Api\DeployController;
|
||||||
use App\Models\Tag;
|
use App\Models\Tag;
|
||||||
use Illuminate\Support\Collection;
|
use Illuminate\Support\Collection;
|
||||||
use Livewire\Attributes\Url;
|
use Livewire\Attributes\Url;
|
||||||
@ -51,11 +51,11 @@ public function redeploy_all()
|
|||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
$this->applications->each(function ($resource) {
|
$this->applications->each(function ($resource) {
|
||||||
$deploy = new Deploy();
|
$deploy = new DeployController();
|
||||||
$deploy->deploy_resource($resource);
|
$deploy->deploy_resource($resource);
|
||||||
});
|
});
|
||||||
$this->services->each(function ($resource) {
|
$this->services->each(function ($resource) {
|
||||||
$deploy = new Deploy();
|
$deploy = new DeployController();
|
||||||
$deploy->deploy_resource($resource);
|
$deploy->deploy_resource($resource);
|
||||||
});
|
});
|
||||||
$this->dispatch('success', 'Mass deployment started.');
|
$this->dispatch('success', 'Mass deployment started.');
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
namespace App\Livewire\Tags;
|
namespace App\Livewire\Tags;
|
||||||
|
|
||||||
use App\Http\Controllers\Api\Deploy;
|
use App\Http\Controllers\Api\DeployController;
|
||||||
use App\Models\ApplicationDeploymentQueue;
|
use App\Models\ApplicationDeploymentQueue;
|
||||||
use App\Models\Tag;
|
use App\Models\Tag;
|
||||||
use Livewire\Component;
|
use Livewire\Component;
|
||||||
@ -59,11 +59,11 @@ public function redeploy_all()
|
|||||||
try {
|
try {
|
||||||
$message = collect([]);
|
$message = collect([]);
|
||||||
$this->applications->each(function ($resource) use ($message) {
|
$this->applications->each(function ($resource) use ($message) {
|
||||||
$deploy = new Deploy();
|
$deploy = new DeployController();
|
||||||
$message->push($deploy->deploy_resource($resource));
|
$message->push($deploy->deploy_resource($resource));
|
||||||
});
|
});
|
||||||
$this->services->each(function ($resource) use ($message) {
|
$this->services->each(function ($resource) use ($message) {
|
||||||
$deploy = new Deploy();
|
$deploy = new DeployController();
|
||||||
$message->push($deploy->deploy_resource($resource));
|
$message->push($deploy->deploy_resource($resource));
|
||||||
});
|
});
|
||||||
$this->dispatch('success', 'Mass deployment started.');
|
$this->dispatch('success', 'Mass deployment started.');
|
||||||
|
Loading…
Reference in New Issue
Block a user