1
0

Ask for confirmation before deploying

This commit is contained in:
Richard Dern 2024-05-03 16:16:19 +02:00
parent a3ee7d10a8
commit be6d443a13

View File

@ -8,6 +8,7 @@
use Illuminate\Support\Facades\Storage;
use Illuminate\Support\Str;
use function Laravel\Prompts\confirm;
use function Laravel\Prompts\progress;
class Render extends Command
@ -60,6 +61,7 @@ public function handle()
$progress->finish();
if (confirm('Ready to deploy?')) {
$this->output->write('Deploying... ');
$source = Str::finish(Storage::disk(env('DIST_DISK'))->path('/'), '/');
$target = env('DEPLOY_TARGET');
@ -70,3 +72,4 @@ public function handle()
$this->info('OK');
}
}
}