Skip to content

Commit

Permalink
Merge pull request #313 from imnotprogrammer/windows_start_update
Browse files Browse the repository at this point in the history
windows下开发,每个进程统一workman 日志文件
  • Loading branch information
walkor authored Jun 1, 2022
2 parents 9770961 + 1515f22 commit 2473f18
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions windows.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,11 @@
Config::load(config_path(), ['route', 'container']);
worker_start('$process_name', config('process')['$process_name']);
if (DIRECTORY_SEPARATOR != "/") {
Worker::\$logFile = config('server')['log_file'] ?? Worker::\$logFile;
}
Worker::runAll();
EOF;
Expand Down Expand Up @@ -67,6 +72,11 @@
Config::load(config_path(), ['route', 'container']);
worker_start("plugin.$firm.$name.$process_name", config("plugin.$firm.$name.process")['$process_name']);
if (DIRECTORY_SEPARATOR != "/") {
Worker::\$logFile = config('server')['log_file'] ?? Worker::\$logFile;
}
Worker::runAll();
EOF;
Expand Down

0 comments on commit 2473f18

Please sign in to comment.