111
This commit is contained in:
@@ -229,6 +229,9 @@ class Application extends BaseApplication
|
|||||||
{
|
{
|
||||||
if (env('enableFileChange', 'off') == 'off' || !($class instanceof Command)) {
|
if (env('enableFileChange', 'off') == 'off' || !($class instanceof Command)) {
|
||||||
scan_directory(directory('app'), 'App');
|
scan_directory(directory('app'), 'App');
|
||||||
|
|
||||||
|
$loader = Kiri::app()->getRouter();
|
||||||
|
$loader->_loader();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -115,8 +115,10 @@ class OnServerWorker extends \Server\Abstracts\Server
|
|||||||
private function workerInitExecutor(Server $server, int $workerId)
|
private function workerInitExecutor(Server $server, int $workerId)
|
||||||
{
|
{
|
||||||
if ($workerId < $server->setting['worker_num']) {
|
if ($workerId < $server->setting['worker_num']) {
|
||||||
|
if (env('enableFileChange', 'off') == 'off') {
|
||||||
$loader = Kiri::app()->getRouter();
|
$loader = Kiri::app()->getRouter();
|
||||||
$loader->_loader();
|
$loader->_loader();
|
||||||
|
}
|
||||||
|
|
||||||
putenv('environmental=' . Kiri::WORKER);
|
putenv('environmental=' . Kiri::WORKER);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user