Allow reapply yaml config via env (#14100)

REAPPLY_YAML_CONFIG=1

This will overwrite all settings set in yaml files.
This commit is contained in:
Tony Murray 2022-07-09 09:32:13 -05:00 committed by GitHub
parent 94d435eff1
commit a598b52fee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -57,7 +57,7 @@ class ConfigSeeder extends Seeder
return; // nothing to do
}
if (\App\Models\Config::exists()) {
if (\App\Models\Config::exists() && ! getenv('REAPPLY_YAML_CONFIG')) {
if (! app()->runningInConsole() || ! $this->command->confirm(trans('commands.db:seed.existing_config'), false)) {
return; // don't overwrite existing settings.
}