botstrap.php to kernel update
This commit is contained in:
parent
76d090febf
commit
e12bf58baf
@ -41,6 +41,14 @@ class KernelController extends ConsoleController
|
|||||||
$this->out->r("/bootstrap не найден", 'red');
|
$this->out->r("/bootstrap не найден", 'red');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (file_exists(ROOT_DIR . '/bootstrap.php')) {
|
||||||
|
$tmpBootstrapPhpDirFull = RESOURCES_DIR . '/tmp/ad/kernel/bootstrap.php';
|
||||||
|
copy(ROOT_DIR . '/bootstrap.php', $tmpBootstrapPhpDirFull);
|
||||||
|
$this->out->r("/bootstrap.php скопирован во временную папку", 'green');
|
||||||
|
} else {
|
||||||
|
$this->out->r("/bootstrap.php не найден", 'red');
|
||||||
|
}
|
||||||
|
|
||||||
if (file_exists(ROOT_DIR . '/.env.example')) {
|
if (file_exists(ROOT_DIR . '/.env.example')) {
|
||||||
$tmpEnvDirFull = RESOURCES_DIR . '/tmp/ad/kernel/env.example';
|
$tmpEnvDirFull = RESOURCES_DIR . '/tmp/ad/kernel/env.example';
|
||||||
copy(ROOT_DIR . '/.env.example', $tmpEnvDirFull);
|
copy(ROOT_DIR . '/.env.example', $tmpEnvDirFull);
|
||||||
@ -88,6 +96,7 @@ class KernelController extends ConsoleController
|
|||||||
if (isset($this->argv['bootstrap'])) {
|
if (isset($this->argv['bootstrap'])) {
|
||||||
$this->files->recursiveRemoveDir(ROOT_DIR . '/bootstrap');
|
$this->files->recursiveRemoveDir(ROOT_DIR . '/bootstrap');
|
||||||
$this->files->copy_folder($tmpKernelDirFull . 'bootstrap' , ROOT_DIR . '/bootstrap');
|
$this->files->copy_folder($tmpKernelDirFull . 'bootstrap' , ROOT_DIR . '/bootstrap');
|
||||||
|
copy($tmpKernelDirFull . '/bootstrap.php' , ROOT_DIR . '/bootstrap.php');
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isset($this->argv['env'])) {
|
if (isset($this->argv['env'])) {
|
||||||
|
@ -346,7 +346,7 @@ class ModuleService
|
|||||||
$fileHelper->copy_folder(APP_DIR . '/modules/' . $moduleName, $tmpModuleDirFull . 'app/');
|
$fileHelper->copy_folder(APP_DIR . '/modules/' . $moduleName, $tmpModuleDirFull . 'app/');
|
||||||
$fileHelper->copy_folder(KERNEL_APP_MODULES_DIR . '/' . $moduleName, $tmpModuleDirFull . 'kernel/');
|
$fileHelper->copy_folder(KERNEL_APP_MODULES_DIR . '/' . $moduleName, $tmpModuleDirFull . 'kernel/');
|
||||||
|
|
||||||
if (!is_dir(RESOURCES_DIR . '/tmp/module')) {
|
if (!is_dir(RESOURCES_DIR . '/tmp/modules')) {
|
||||||
mkdir(RESOURCES_DIR . '/tmp/modules', 0777, true);
|
mkdir(RESOURCES_DIR . '/tmp/modules', 0777, true);
|
||||||
}
|
}
|
||||||
$fileHelper->pack($tmpModuleDirFull, RESOURCES_DIR . '/tmp/modules/' . $moduleName . '.itguild');
|
$fileHelper->pack($tmpModuleDirFull, RESOURCES_DIR . '/tmp/modules/' . $moduleName . '.itguild');
|
||||||
|
Loading…
Reference in New Issue
Block a user