Compare commits
2 Commits
0f50e874d4
...
b52abb69c7
Author | SHA1 | Date | |
---|---|---|---|
b52abb69c7 | |||
e4d78e054b |
@ -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 . ' script.php');
|
||||
$output = shell_exec('CONFIG_FILE="' . $config . '" ' . $phpbin . ' ' . $_SERVER['DOCUMENT_ROOT'] . 'script.php');
|
||||
echo $output;
|
||||
|
@ -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]);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user