Heroku using nginx, reverted public and some fixes
This commit is contained in:
parent
8ece2c2b25
commit
1b29950d89
15 changed files with 38 additions and 33 deletions
14
index.php
Normal file
14
index.php
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
<?php
|
||||
require __DIR__ . "/vendor/autoload.php";
|
||||
|
||||
// LOAD DOTENV
|
||||
$dotenv = Dotenv\Dotenv::createImmutable(__DIR__ . '/..');
|
||||
$dotenv->safeLoad();
|
||||
|
||||
// ROUTER
|
||||
$router = new Bramus\Router\Router();
|
||||
$router->setNamespace('\App\Controllers');
|
||||
|
||||
require __DIR__ . '/routes.php';
|
||||
|
||||
$router->run();
|
||||
Loading…
Add table
Add a link
Reference in a new issue