File tree 3 files changed +5
-39
lines changed
workerman-gateway/tests/unit/AppServer/bin
3 files changed +5
-39
lines changed Original file line number Diff line number Diff line change 2
2
3
3
declare (strict_types=1 );
4
4
5
- $ imiPath = \dirname (__DIR__ ) . \DIRECTORY_SEPARATOR . 'src ' . \DIRECTORY_SEPARATOR ;
6
-
7
5
return [
8
- 'beanScan ' => [
9
- 'Imi\Config ' ,
10
- 'Imi\Bean ' ,
11
- 'Imi\Aop ' ,
12
- 'Imi\Async ' ,
13
- 'Imi\Annotation ' ,
14
- 'Imi\Cache ' ,
15
- 'Imi\Server ' ,
16
- 'Imi\Log ' ,
17
- 'Imi\Pool ' ,
18
- 'Imi\Db ' ,
19
- 'Imi\Redis ' ,
20
- 'Imi\Model ' ,
21
- 'Imi\Tool ' ,
22
- 'Imi\Cli ' ,
23
- 'Imi\Validate ' ,
24
- 'Imi\HttpValidate ' ,
25
- 'Imi\Enum ' ,
26
- 'Imi\Lock ' ,
27
- 'Imi\Facade ' ,
28
- 'Imi\Cron ' ,
29
- 'Imi\RequestContextProxy ' ,
30
- 'Imi\Process ' ,
31
- ],
32
6
'ignoreNamespace ' => [
33
7
'Imi\Components\* ' ,
34
8
],
35
- 'ignorePaths ' => [
36
- $ imiPath . 'functions ' ,
37
- $ imiPath . 'Components ' . \DIRECTORY_SEPARATOR . '* ' . \DIRECTORY_SEPARATOR . 'vendor ' . \DIRECTORY_SEPARATOR . '*/vendor ' ,
38
- $ imiPath . 'Cli ' . \DIRECTORY_SEPARATOR . 'bootstrap ' ,
39
- ],
40
9
];
Original file line number Diff line number Diff line change @@ -66,16 +66,13 @@ public function loadRuntime(): int
66
66
if (!Imi::loadRuntimeInfo ($ fileName ))
67
67
{
68
68
$ fileName = Imi::getCurrentModeRuntimePath ('imi-runtime ' );
69
- $ isBuildRuntime = !Imi::loadRuntimeInfo ($ fileName , true );
70
- if ($ isBuildRuntime )
69
+ if (!Imi::loadRuntimeInfo ($ fileName , true ))
71
70
{
72
71
// 扫描 imi 框架
73
72
Scanner::scanImi (false );
74
73
// 扫描组件
75
74
Scanner::scanVendor (false );
76
- }
77
- if ($ isBuildRuntime )
78
- {
75
+ // 构建项目运行时缓存
79
76
Imi::buildRuntime ($ fileName );
80
77
}
81
78
// 扫描项目
Original file line number Diff line number Diff line change @@ -2,14 +2,14 @@ $__DIR__ = $(Split-Path -Parent $MyInvocation.MyCommand.Definition)
2
2
3
3
& $__DIR__ \stop-workerman.ps1
4
4
5
+ $procss = Start-Process - PassThru - FilePath " php" - ArgumentList " $__DIR__ \workerman workerman/start --name websocket"
6
+ $procss.Id | Out-File $__DIR__ / websocket.pid
7
+
5
8
$procss = Start-Process - PassThru - FilePath " php" - ArgumentList " $__DIR__ \workerman workerman/start --name register"
6
9
$procss.Id | Out-File $__DIR__ / register.pid
7
10
8
11
$procss = Start-Process - PassThru - FilePath " php" - ArgumentList " $__DIR__ \workerman workerman/start --name gateway"
9
12
$procss.Id | Out-File $__DIR__ / gateway.pid
10
13
11
- $procss = Start-Process - PassThru - FilePath " php" - ArgumentList " $__DIR__ \workerman workerman/start --name websocket"
12
- $procss.Id | Out-File $__DIR__ / websocket.pid
13
-
14
14
$procss = Start-Process - PassThru - FilePath " php" - ArgumentList " $__DIR__ \workerman workerman/start --name http"
15
15
$procss.Id | Out-File $__DIR__ / http.pid
You can’t perform that action at this time.
0 commit comments