Ask for confirmation before deploying
This commit is contained in:
parent
a3ee7d10a8
commit
be6d443a13
|
@ -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');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user