require constants first

This commit is contained in:
xiaomlove
2022-04-22 13:37:39 +08:00
parent bd23f50e11
commit 6a8911b863

View File

@@ -1,10 +1,9 @@
<?php
ini_set('date.timezone', nexus_config('nexus.timezone'));
ini_set('error_reporting', E_ALL);
ini_set('display_errors', 0);
require_once __DIR__ . '/constants.php';
require_once $rootpath . 'vendor/autoload.php';
ini_set('date.timezone', nexus_config('nexus.timezone'));
\Nexus\Nexus::boot();
if (!file_exists($rootpath . '.env')) {
$installScriptRelativePath = 'install/install.php';