Skip to content

Commit 1515f22

Browse files
author
lan
committed
windows下开发,每个进程统一workman 日志文件
1 parent 9770961 commit 1515f22

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

windows.php

+10
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,11 @@
3838
Config::load(config_path(), ['route', 'container']);
3939
4040
worker_start('$process_name', config('process')['$process_name']);
41+
42+
if (DIRECTORY_SEPARATOR != "/") {
43+
Worker::\$logFile = config('server')['log_file'] ?? Worker::\$logFile;
44+
}
45+
4146
Worker::runAll();
4247
4348
EOF;
@@ -67,6 +72,11 @@
6772
Config::load(config_path(), ['route', 'container']);
6873
6974
worker_start("plugin.$firm.$name.$process_name", config("plugin.$firm.$name.process")['$process_name']);
75+
76+
if (DIRECTORY_SEPARATOR != "/") {
77+
Worker::\$logFile = config('server')['log_file'] ?? Worker::\$logFile;
78+
}
79+
7080
Worker::runAll();
7181
7282
EOF;

0 commit comments

Comments
 (0)