mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-24 12:07:23 +08:00
update include update env file
This commit is contained in:
@@ -137,6 +137,12 @@ class NexusUpdate extends Command
|
||||
$this->doLog("Error: Redis version: {$mysqlInfo['version']} is too low, please use 2.0.0 or above.", 'error');
|
||||
return 0;
|
||||
}
|
||||
if ($includeComposer) {
|
||||
$this->doLog("going to update .env file ...");
|
||||
$this->update->updateEnvFile();
|
||||
$this->doLog("update .env file done!");
|
||||
}
|
||||
|
||||
$this->doLog("going to createSymbolicLinks...");
|
||||
$this->update->createSymbolicLinks($symbolicLinks);
|
||||
$this->doLog("createSymbolicLinks done!");
|
||||
|
||||
@@ -104,8 +104,8 @@ class Test extends Command
|
||||
$str = "1.abc.de";
|
||||
$ext = "png";
|
||||
$str = "202404/20240403215909f58f38ddd968a0e8a4bdd30690a9e92e.png";
|
||||
$res = substr($str, 0,-1*strlen($ext)-1);
|
||||
dd($res);
|
||||
$ext = pathinfo($str, PATHINFO_EXTENSION);
|
||||
dd(basename($str), $ext);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user