Fix for heroku

This commit is contained in:
Pablo Ferreiro
2022-01-03 23:31:23 +01:00
parent 321ce20007
commit c700036aa2
+4 -2
View File
@@ -3,8 +3,10 @@ require __DIR__ . "/vendor/autoload.php";
use Steampixel\Route;
// LOAD DOTENV
$dotenv = Dotenv\Dotenv::createImmutable(__DIR__);
$dotenv->load();
if (file_exists(__DIR__ . '/.env')) {
$dotenv = Dotenv\Dotenv::createImmutable(__DIR__);
$dotenv->load();
}
// -- HELPERS -- //
function getSubdir(): string {