Compare commits

..

No commits in common. "b52abb69c79d19d9a99b77aa4255b9e4dac83b4e" and "0f50e874d432f2a651875d2b1747d54bef027bb7" have entirely different histories.

2 changed files with 2 additions and 2 deletions

View File

@ -2,5 +2,5 @@
header('Content-Type: text/plain; version=0.0.4');
$config = getenv('CONFIG_FILE');
$phpbin = getenv('PHP_BINARY');
$output = shell_exec('CONFIG_FILE="' . $config . '" ' . $phpbin . ' ' . $_SERVER['DOCUMENT_ROOT'] . 'script.php');
$output = shell_exec('CONFIG_FILE="' . $config . '" ' . $phpbin . ' script.php');
echo $output;

View File

@ -122,7 +122,7 @@ if(php_sapi_name() == 'cli' || $_SERVER["REQUEST_URI"] == '/metrics') {
$loader = new \Twig\Loader\FilesystemLoader('templates');
$twig = new \Twig\Environment($loader, [
'cache' => 'twig_cache',
'cache' => 'twig-cache',
]);
echo $twig->render('metrics.twig', ['config' => $config]);
}