mirror of
https://github.com/koel/koel
synced 2024-11-10 06:34:14 +00:00
feat: add option to skip installation of scheduler (#1807)
This commit is contained in:
parent
25673a4de4
commit
d28548ebba
2 changed files with 9 additions and 4 deletions
|
@ -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) {
|
||||
|
|
|
@ -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`
|
||||
|
||||
|
|
Loading…
Reference in a new issue