feat: add option to skip installation of scheduler (#1807)

This commit is contained in:
Girish Ramakrishnan 2024-08-23 20:01:46 +02:00 committed by GitHub
parent 25673a4de4
commit d28548ebba
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 9 additions and 4 deletions

View file

@ -27,7 +27,7 @@ class InitCommand extends Command
private const DEFAULT_ADMIN_PASSWORD = 'KoelIsCool';
private const NON_INTERACTION_MAX_DATABASE_ATTEMPT_COUNT = 10;
protected $signature = 'koel:init {--no-assets : Do not compile front-end assets}';
protected $signature = 'koel:init {--no-assets : Do not compile front-end assets} {--no-scheduler : Do not install scheduler}';
protected $description = 'Install or upgrade Koel';
private bool $adminSeeded = false;
@ -355,6 +355,10 @@ class InitCommand extends Command
return;
}
if ((bool) $this->option('no-scheduler')) {
return;
}
$this->components->info('Trying to install Koel scheduler…');
if (Artisan::call('koel:scheduler:install') !== self::SUCCESS) {

View file

@ -63,9 +63,10 @@ php artisan koel:init [options]
```
#### Options
| Name | Description |
|---------------|---------------------------------|
| `--no-assets` | Do not compile front-end assets |
| Name | Description |
|------------------|---------------------------------|
| `--no-assets` | Do not compile front-end assets |
| `--no-scheduler` | Do not install scheduler |
### `koel:license:activate`