Skip to content

Commit 59b50ca

Browse files
lancepiochDaneEveritt
authored andcommitted
Allow the environment setup without loading the database (settings provider) first (pterodactyl#823)
1 parent 321d00c commit 59b50ca

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.env.example

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ APP_THEME=pterodactyl
55
APP_TIMEZONE=America/New_York
66
APP_CLEAR_TASKLOG=720
77
APP_DELETE_MINUTES=10
8+
APP_ENVIRONMENT_ONLY=true
89
APP_URL=
910

1011
DB_HOST=127.0.0.1
@@ -13,7 +14,7 @@ DB_DATABASE=panel
1314
DB_USERNAME=pterodactyl
1415
DB_PASSWORD=
1516

16-
CACHE_DRIVER=
17+
CACHE_DRIVER=file
1718
SESSION_DRIVER=
1819

1920
HASHIDS_SALT=

app/Console/Commands/Environment/AppSettingsCommand.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,8 @@ public function handle()
135135
self::ALLOWED_QUEUE_DRIVERS,
136136
array_key_exists($selected, self::ALLOWED_QUEUE_DRIVERS) ? $selected : null
137137
);
138+
139+
$this->variables['APP_ENVIRONMENT_ONLY'] = false;
138140

139141
$this->checkForRedis();
140142
$this->writeToEnvironment($this->variables);

0 commit comments

Comments
 (0)