mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 21:22:58 +01:00
remove node/npm requirement
This commit is contained in:
parent
8946306d2a
commit
4c351f6658
@ -74,8 +74,6 @@ class SystemHealth
|
||||
'env_writable' => self::checkEnvWritable(),
|
||||
//'mail' => self::testMailServer(),
|
||||
'simple_db_check' => (bool) self::simpleDbCheck(),
|
||||
// 'npm_status' => self::checkNpm(),
|
||||
// 'node_status' => self::checkNode(),
|
||||
'cache_enabled' => self::checkConfigCache(),
|
||||
'phantom_enabled' => (bool) config('ninja.phantomjs_pdf_generation'),
|
||||
'exec' => (bool) self::checkExecWorks(),
|
||||
@ -110,36 +108,6 @@ class SystemHealth
|
||||
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
|
||||
{
|
||||
$result = true;
|
||||
|
Loading…
Reference in New Issue
Block a user