Allow the environment setup without loading the database (settings provider) first (#823)

This commit is contained in:
Lance Pioch 2017-12-30 17:16:49 -05:00 committed by Dane Everitt
parent 321d00c89e
commit 59b50ca75e
2 changed files with 4 additions and 1 deletions

View file

@ -5,6 +5,7 @@ APP_THEME=pterodactyl
APP_TIMEZONE=America/New_York APP_TIMEZONE=America/New_York
APP_CLEAR_TASKLOG=720 APP_CLEAR_TASKLOG=720
APP_DELETE_MINUTES=10 APP_DELETE_MINUTES=10
APP_ENVIRONMENT_ONLY=true
APP_URL= APP_URL=
DB_HOST=127.0.0.1 DB_HOST=127.0.0.1
@ -13,7 +14,7 @@ DB_DATABASE=panel
DB_USERNAME=pterodactyl DB_USERNAME=pterodactyl
DB_PASSWORD= DB_PASSWORD=
CACHE_DRIVER= CACHE_DRIVER=file
SESSION_DRIVER= SESSION_DRIVER=
HASHIDS_SALT= HASHIDS_SALT=

View file

@ -136,6 +136,8 @@ class AppSettingsCommand extends Command
array_key_exists($selected, self::ALLOWED_QUEUE_DRIVERS) ? $selected : null array_key_exists($selected, self::ALLOWED_QUEUE_DRIVERS) ? $selected : null
); );
$this->variables['APP_ENVIRONMENT_ONLY'] = false;
$this->checkForRedis(); $this->checkForRedis();
$this->writeToEnvironment($this->variables); $this->writeToEnvironment($this->variables);