mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-23 20:00:33 -04:00
remove node/npm requirement
This commit is contained in:
parent
8946306d2a
commit
4c351f6658
@ -74,8 +74,6 @@ class SystemHealth
|
|||||||
'env_writable' => self::checkEnvWritable(),
|
'env_writable' => self::checkEnvWritable(),
|
||||||
//'mail' => self::testMailServer(),
|
//'mail' => self::testMailServer(),
|
||||||
'simple_db_check' => (bool) self::simpleDbCheck(),
|
'simple_db_check' => (bool) self::simpleDbCheck(),
|
||||||
// 'npm_status' => self::checkNpm(),
|
|
||||||
// 'node_status' => self::checkNode(),
|
|
||||||
'cache_enabled' => self::checkConfigCache(),
|
'cache_enabled' => self::checkConfigCache(),
|
||||||
'phantom_enabled' => (bool) config('ninja.phantomjs_pdf_generation'),
|
'phantom_enabled' => (bool) config('ninja.phantomjs_pdf_generation'),
|
||||||
'exec' => (bool) self::checkExecWorks(),
|
'exec' => (bool) self::checkExecWorks(),
|
||||||
@ -110,36 +108,6 @@ class SystemHealth
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function checkNode()
|
|
||||||
{
|
|
||||||
try {
|
|
||||||
exec('node -v', $foo, $exitCode);
|
|
||||||
|
|
||||||
if ($exitCode === 0) {
|
|
||||||
return empty($foo[0]) ? 'Found node, but no version information' : $foo[0];
|
|
||||||
}
|
|
||||||
|
|
||||||
return 'Node not found.';
|
|
||||||
} catch (Exception $e) {
|
|
||||||
return 'Node not found.';
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public static function checkNpm()
|
|
||||||
{
|
|
||||||
try {
|
|
||||||
exec('npm -v', $foo, $exitCode);
|
|
||||||
|
|
||||||
if ($exitCode === 0) {
|
|
||||||
return empty($foo[0]) ? 'Found npm, but no version information' : $foo[0];
|
|
||||||
}
|
|
||||||
|
|
||||||
return 'NPM not found';
|
|
||||||
} catch (Exception $e) {
|
|
||||||
return 'NPM not found';
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private static function simpleDbCheck() :bool
|
private static function simpleDbCheck() :bool
|
||||||
{
|
{
|
||||||
$result = true;
|
$result = true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user