mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-03 23:12:35 +00:00
Add workers to servers (#547)
This commit is contained in:
@ -2,15 +2,15 @@
|
||||
|
||||
namespace Database\Seeders;
|
||||
|
||||
use App\Enums\QueueStatus;
|
||||
use App\Enums\SiteType;
|
||||
use App\Enums\SslStatus;
|
||||
use App\Enums\SslType;
|
||||
use App\Models\Queue;
|
||||
use App\Enums\WorkerStatus;
|
||||
use App\Models\Server;
|
||||
use App\Models\Site;
|
||||
use App\Models\SourceControl;
|
||||
use App\Models\Ssl;
|
||||
use App\Models\Worker;
|
||||
use Illuminate\Database\Eloquent\Builder;
|
||||
use Illuminate\Database\Seeder;
|
||||
|
||||
@ -36,10 +36,10 @@ public function run(): void
|
||||
'aliases' => ['www.'.$server->project->name.'.com'],
|
||||
]);
|
||||
$app->tags()->attach($server->tags()->first());
|
||||
Queue::factory()->create([
|
||||
Worker::factory()->create([
|
||||
'site_id' => $app->id,
|
||||
'command' => 'php artisan queue:work',
|
||||
'status' => QueueStatus::RUNNING,
|
||||
'status' => WorkerStatus::RUNNING,
|
||||
]);
|
||||
Ssl::factory()->create([
|
||||
'site_id' => $app->id,
|
||||
|
Reference in New Issue
Block a user