Compare commits
No commits in common. "b52abb69c79d19d9a99b77aa4255b9e4dac83b4e" and "0f50e874d432f2a651875d2b1747d54bef027bb7" have entirely different histories.
b52abb69c7
...
0f50e874d4
@ -2,5 +2,5 @@
|
|||||||
header('Content-Type: text/plain; version=0.0.4');
|
header('Content-Type: text/plain; version=0.0.4');
|
||||||
$config = getenv('CONFIG_FILE');
|
$config = getenv('CONFIG_FILE');
|
||||||
$phpbin = getenv('PHP_BINARY');
|
$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;
|
echo $output;
|
||||||
|
@ -122,7 +122,7 @@ if(php_sapi_name() == 'cli' || $_SERVER["REQUEST_URI"] == '/metrics') {
|
|||||||
|
|
||||||
$loader = new \Twig\Loader\FilesystemLoader('templates');
|
$loader = new \Twig\Loader\FilesystemLoader('templates');
|
||||||
$twig = new \Twig\Environment($loader, [
|
$twig = new \Twig\Environment($loader, [
|
||||||
'cache' => 'twig_cache',
|
'cache' => 'twig-cache',
|
||||||
]);
|
]);
|
||||||
echo $twig->render('metrics.twig', ['config' => $config]);
|
echo $twig->render('metrics.twig', ['config' => $config]);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user