From 59b50ca75e294123bd9b247e72c3c23c96f83a25 Mon Sep 17 00:00:00 2001 From: Lance Pioch Date: Sat, 30 Dec 2017 17:16:49 -0500 Subject: [PATCH] Allow the environment setup without loading the database (settings provider) first (#823) --- .env.example | 3 ++- app/Console/Commands/Environment/AppSettingsCommand.php | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.env.example b/.env.example index 5a2dd4db..c4a943e5 100644 --- a/.env.example +++ b/.env.example @@ -5,6 +5,7 @@ APP_THEME=pterodactyl APP_TIMEZONE=America/New_York APP_CLEAR_TASKLOG=720 APP_DELETE_MINUTES=10 +APP_ENVIRONMENT_ONLY=true APP_URL= DB_HOST=127.0.0.1 @@ -13,7 +14,7 @@ DB_DATABASE=panel DB_USERNAME=pterodactyl DB_PASSWORD= -CACHE_DRIVER= +CACHE_DRIVER=file SESSION_DRIVER= HASHIDS_SALT= diff --git a/app/Console/Commands/Environment/AppSettingsCommand.php b/app/Console/Commands/Environment/AppSettingsCommand.php index 8f27d1ad..fb74e84a 100644 --- a/app/Console/Commands/Environment/AppSettingsCommand.php +++ b/app/Console/Commands/Environment/AppSettingsCommand.php @@ -135,6 +135,8 @@ class AppSettingsCommand extends Command self::ALLOWED_QUEUE_DRIVERS, array_key_exists($selected, self::ALLOWED_QUEUE_DRIVERS) ? $selected : null ); + + $this->variables['APP_ENVIRONMENT_ONLY'] = false; $this->checkForRedis(); $this->writeToEnvironment($this->variables);