diff --git a/app/Console/Commands/UpdateEnvironment.php b/app/Console/Commands/UpdateEnvironment.php index 734bd070e..7afa3e7e2 100644 --- a/app/Console/Commands/UpdateEnvironment.php +++ b/app/Console/Commands/UpdateEnvironment.php @@ -82,6 +82,14 @@ class UpdateEnvironment extends Command $variables['SERVICE_AUTHOR'] = env('SERVICE_AUTHOR', (string) Uuid::generate(4)); } + if (!env('QUEUE_STANDARD', false) || !env('QUEUE_DRIVER', false)) { + $this->info('Setting default queue settings.'); + $variables['QUEUE_DRIVER'] = env('QUEUE_DRIVER', 'database'); + $variables['QUEUE_HIGH'] = env('QUEUE_HIGH', 'high'); + $variables['QUEUE_STANDARD'] = env('QUEUE_STANDARD', 'standard'); + $variables['QUEUE_LOW'] = env('QUEUE_LOW', 'low'); + } + if (is_null($this->option('dbhost'))) { $variables['DB_HOST'] = $this->anticipate('Database Host', [ 'localhost', '127.0.0.1', env('DB_HOST') ], env('DB_HOST')); } else { diff --git a/config/queue.php b/config/queue.php index 4ed92ba94..0a2181f77 100644 --- a/config/queue.php +++ b/config/queue.php @@ -38,7 +38,7 @@ return [ 'database' => [ 'driver' => 'database', 'table' => 'jobs', - 'queue' => env('QUEUE_STANDARD'), + 'queue' => env('QUEUE_STANDARD', 'standard'), 'retry_after' => 60, ], @@ -47,14 +47,14 @@ return [ 'key' => env('SQS_KEY'), 'secret' => env('SQS_SECRET'), 'prefix' => env('SQS_QUEUE_PREFIX'), - 'queue' => env('QUEUE_STANDARD'), + 'queue' => env('QUEUE_STANDARD', 'standard'), 'region' => env('SQS_REGION', 'us-east-1'), ], 'redis' => [ 'driver' => 'redis', 'connection' => 'default', - 'queue' => env('QUEUE_STANDARD'), + 'queue' => env('QUEUE_STANDARD', 'standard'), 'retry_after' => 60, ],