Load site settings from dotenv and store OAuth credentials
This commit is contained in:
@@ -6,6 +6,9 @@ declare(strict_types=1);
|
||||
chdir(__DIR__);
|
||||
require __DIR__ . '/vendor/autoload.php';
|
||||
|
||||
// Read process variables before Webman loads .env in the worker bootstrap.
|
||||
App\Config\Environment::load();
|
||||
|
||||
$sessionPath = __DIR__ . '/runtime/sessions';
|
||||
if (!is_dir($sessionPath) && !mkdir($sessionPath, 0750, true) && !is_dir($sessionPath)) {
|
||||
throw new RuntimeException('无法创建会话目录。');
|
||||
|
||||
Reference in New Issue
Block a user