**Slim Deploy 500 Error
My Project Structure
Public/index.php
<?php
require __DIR__.'/../bootstrap/app.php';
$app->run();
?>
bootstrap/app.php
<?php
require __DIR__.'/../vendor/autoload.php';
require 'config.php';
session_start();
$app = new \Slim\App([
'settings' => [
'displayErrorDetails' => false
]
]);
$container = $app->getContainer();
$container['auth'] = function ($container) {
return new \App\Auth\Auth;
};
$container['flash'] = function ($container) {
return new \Slim\Flash\Messages;
};
$container['view'] = function ($container) {
$view = new \Slim\Views\Twig(__DIR__ .'/../resourses/views', [
'cache' => false,
]);
$container['errorHandler'] = function ($container) {
return function ($request, $response, $exception) use ($container) {
// retrieve logger from $container here and log the error
$response->getBody()->rewind();
return $response->withStatus(500)
->withHeader('Content-Type', 'text/html')
->write("Oops, something's gone wrong!");
};
};
$container['phpErrorHandler'] = function ($container) {
return function ($request, $response, $error) use ($container) {
// retrieve logger from $container here and log the error
$response->getBody()->rewind();
return $response->withStatus(500)
->withHeader('Content-Type', 'text/html')
->write("Oops, something's gone wrong!");
};
};
$view->getEnvironment()->addGlobal('flash', $container->flash);
$view->addExtension(new Slim\Views\TwigExtension(
$container->router,
$container->request->getUri()
));
return $view;
};
require __DIR__. '/../routes/web.php';
any help how to deploy online hosting