Allow to deploy without asking
This commit is contained in:
parent
1d6240afcd
commit
43cf565f8f
|
@ -30,6 +30,7 @@ public function __construct()
|
|||
$this->signature = 'bundle:render
|
||||
{ --a|assets : Rebuild assets - implies <info>-c</info> }
|
||||
{ --c|clear-cache : Clear cache before rendering }
|
||||
{ --deploy : Deploy without asking }
|
||||
{ --d|dry-run : Show what would be done but do nothing }
|
||||
{ --no-deploy : Do not deploy, do not ask to deploy }
|
||||
{ --r|recursive : Also render sub-bundles }
|
||||
|
@ -213,12 +214,14 @@ private function deploy()
|
|||
return;
|
||||
}
|
||||
|
||||
if (!$this->option('deploy')) {
|
||||
// Ask for confirmation
|
||||
if (!confirm('Ready to deploy?')) {
|
||||
$this->comment('OK, not deploying!');
|
||||
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
$source = Str::finish($this->targetDisk->path('/'), '/');
|
||||
$target = env('DEPLOY_TARGET');
|
||||
|
|
Loading…
Reference in New Issue
Block a user