mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-23 11:27:24 +08:00
fix get PHP_PATH from env
This commit is contained in:
@@ -1150,7 +1150,7 @@ function executeCommand($command, $format = 'string', $artisan = false, $excepti
|
||||
$command .= $append;
|
||||
}
|
||||
if ($artisan) {
|
||||
$phpPath = nexus_env('PHP_PATH', 'php');
|
||||
$phpPath = nexus_env('PHP_PATH') ?: 'php';
|
||||
$webRoot = rtrim(ROOT_PATH, '/');
|
||||
$command = "$phpPath $webRoot/artisan $command";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user