We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f1bd6ff commit 2833b2dCopy full SHA for 2833b2d
src/Commands/StaticSiteGenerate.php
@@ -21,7 +21,7 @@ class StaticSiteGenerate extends Command
21
*
22
* @var string
23
*/
24
- protected $signature = 'statamic:ssg:generate {--workers=1}';
+ protected $signature = 'statamic:ssg:generate {--workers=}';
25
26
/**
27
* The console command description.
@@ -51,8 +51,12 @@ public function handle()
51
{
52
Partyline::bind($this);
53
54
+ if (! $workers = $this->option('workers')) {
55
+ $this->comment('You may be able to speed up site generation significantly by installing spatie/fork and using multiple workers (requires PHP 8+).');
56
+ }
57
+
58
$this->generator
- ->workers($this->option('workers'))
59
+ ->workers($workers ?? 1)
60
->generate();
61
}
62
0 commit comments