Fix for heroku

This commit is contained in:
Pablo Ferreiro 2022-01-03 23:31:23 +01:00
parent 321ce20007
commit c700036aa2
No known key found for this signature in database
GPG key ID: 41FBCE65B779FA24

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 {