summaryrefslogtreecommitdiffstats
path: root/public/index.php
blob: 08b802510d1e5412b9bd655b5f3f989cf14b8b94 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<?php

declare(strict_types=1);

use Phel\Phel;

$projectRootDir = dirname(__DIR__);
require $projectRootDir . '/vendor/autoload.php';

$appFile = $projectRootDir . "/out/index.php";

if (file_exists($appFile)) {
    require_once $appFile;
} else {
    Phel::run($projectRootDir, 'lezer\app');
}