mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-02 14:36:17 +00:00
refactoring
This commit is contained in:
@ -36,8 +36,8 @@ public function create(User $creator, array $input): Server
|
||||
'provider' => $input['provider'],
|
||||
'authentication' => [
|
||||
'user' => config('core.ssh_user'),
|
||||
'pass' => Str::random(10),
|
||||
'root_pass' => Str::random(10),
|
||||
'pass' => Str::random(15),
|
||||
'root_pass' => Str::random(15),
|
||||
],
|
||||
'progress' => 0,
|
||||
'progress_step' => 'Initializing',
|
||||
@ -77,8 +77,7 @@ public function create(User $creator, array $input): Server
|
||||
$server->progress_step = __('Installation will begin in 3 minutes!');
|
||||
$server->save();
|
||||
dispatch(new ContinueInstallation($server))
|
||||
->delay(now()->addMinutes(3))
|
||||
->onQueue('default');
|
||||
->delay(now()->addMinutes(2));
|
||||
}
|
||||
DB::commit();
|
||||
|
||||
|
Reference in New Issue
Block a user