Try to get the container name 3
continuous-integration/drone/push Build is passing Details

master
dohodin 2 years ago
parent ee9a1900b0
commit 524f98b3ca

@ -15,6 +15,12 @@ $views['error'] = 'Views/HTML/error.php';
$_SERVER['BASE_URI'] = ''; $_SERVER['BASE_URI'] = '';
$url = "https://$_SERVER[HTTP_HOST]";
echo $url;
$container_name = basename(parse_url($url, PHP_URL_PATH));
echo $container_name;
$controller['Candidate'] = 'ControllerCandidate'; $controller['Candidate'] = 'ControllerCandidate';
$controller['Admin'] = 'ControllerAdmin'; $controller['Admin'] = 'ControllerAdmin';

@ -7,10 +7,6 @@ require_once(__DIR__.'/Config/Autoload.php');
require_once(__DIR__.'/Config/config.php'); require_once(__DIR__.'/Config/config.php');
require_once(__DIR__.'/Config/Autoload.php'); require_once(__DIR__.'/Config/Autoload.php');
Autoload::charger(); Autoload::charger();
$container_name = getenv('HOSTNAME');
$url = "$_SERVER[REQUEST_URI]";
echo $url;
session_start(); session_start();

Loading…
Cancel
Save