diff options
Diffstat (limited to 'public/index.php')
| -rw-r--r-- | public/index.php | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/public/index.php b/public/index.php new file mode 100644 index 0000000..92e0753 --- /dev/null +++ b/public/index.php @@ -0,0 +1,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, 'web-skeleton\app'); +} + |
